Dictionary from a list

iu2 israelu at elbit.co.il
Wed Aug 19 22:31:17 CEST 2009


Hi all,

I need to create a dictionary out of a list.

Given the list [1, 2, 3, 4, 5, 6]

I need the dictionary: {1:2, 3:4, 5:6}

I'll appreciate your help
Thanks
iu2



More information about the Python-list mailing list