to create variable from dict

hiral hiralsmaillist at gmail.com
Fri Mar 12 08:59:18 EST 2010


Hi,

Is there any way to create variables which name matches with dict key?

For example:
dict1 = {"abc":'1", "def":"2"}

Now I am looking to have variable name abc and it's value be '1' etc.

Pl. suggest.

Thank you.



More information about the Python-list mailing list