[Tutor] create 1000 000 variables

Kent Johnson kent37 at tds.net
Sat Jul 15 13:26:25 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 do you want to do this? What can you do with the named variables 
that you can't do with the original list? Please tell us more about the 
problem you are trying to solve.

Kent



More information about the Tutor mailing list