Combinate 2 lists to a dict ?
Jia Lu
Roka100 at gmail.com
Wed Apr 18 11:13:04 EDT 2007
Hi all.
I have 2 lists,
a = [1,2,3]
b = ["ooo","aaa","ppp"]
What is the fastest way to make a dict like {1:"ooo",2:"aaa",
3:"ppp"} ?
Thanx
More information about the Python-list
mailing list