[Tutor] how i can change two lists into one directory

ANKUR AGGARWAL coolankur2006 at gmail.com
Fri Jul 23 01:51:37 CEST 2010


hey i have just started making  a app using python and just gt a problem..

i have two list
a=["x","z"]
b=[1,2]

i want to make a directory like this
c={"x":1,"z":2}

is it possible???? i mean i tried it using loops and all but i cant append a
directory so i m unable to do this...
plz tell me if there's any way to get the directory like this.... Thanks in
advance :):)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100723/26184a59/attachment.html>


More information about the Tutor mailing list