[Tutor] create 1000 000 variables

Fabrizio Milo aka misto mistobaan at gmail.com
Sat Jul 15 13:07:48 CEST 2006


Hi!
I don't know why you want to do that but actually it is possibble.

>>>for i in xrange(10000):
...    exec( 'var_%s = "var_%s"' %(i,i), locals() )

>>>var_100
'var_100'

Regards.


More information about the Tutor mailing list