to create variable from dict

hiral hiralsmaillist at
Fri Mar 12 14:59:18 CET 2010


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