> In fact I want to create a list of variables from the list of strings
>
> Example: ['var1', 'var2', 'var3'....] - list of strings
Ok, let's stop for the moment.
Do you know about "dictionaries" yet? If not, we should point this out to
you, because they solve the problem you describe.
Yes. I know about dictionaries.
But I wanted to
In fact I want to create a list of variables from the list of stringsExample: ['var1', 'var2', 'var3'....] - list of stringsAnd 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 "???
Can you show me how to solve this using your dictionaries?
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor