[Tutor] Assigning variables with names set by other variables

Terry Carroll carroll at tjc.com
Fri Nov 4 22:39:56 CET 2011


On Fri, 4 Nov 2011, Max S. wrote:

> Is it possible to create a variable with a string held by another variable
> in Python?  For example,

It's possible, but in almost all cases where this comes up, the better 
approach is to use a dictionary.


More information about the Tutor mailing list