[Tutor] create 1000 000 variables

Luke Paireepinart rabidpoobear at gmail.com
Sat Jul 15 11:43:57 CEST 2006


Сергій wrote:
> In fact I want to create a list of variables from the list of strings
>  
> Example: ['var1', 'var2', 'var3'....] - list of strings
> And I need to create variables var1, var2, var3 named as strings in 
> the list, and:
> var1 == 'var1'
> var2 == 'var2'
> var3 == 'var3'
>  
> How to do this using only my list and "for i in "???
Why would you possibly need to do this?
I think whatever you're trying to do could be done a different way much 
easier.
Can you tell us what you're trying to accomplish?
Or are you just seeing if this is possible?


More information about the Tutor mailing list