Creating variables from dicts

vsoler vicente.soler at gmail.com
Tue Feb 23 15:53:14 EST 2010


Hi,

I have two dicts

n={'a', 'm', 'p'}
v={1,3,7}

and I'd like to have

a=1
m=3
p=7

that is, creating some variables.

How can I do this?



More information about the Python-list mailing list