Combinate 2 lists to a dict ?

Jia Lu Roka100 at gmail.com
Wed Apr 18 17:03:16 CEST 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