Store variable name in another variable
larry.bates at websafe.com
Thu Apr 26 15:06:15 CEST 2007
> I need to store a list of variable names in a dictionary or list. I
> then later need to retrieve the names of the variables and get the
> values from the named variables. The named variables will already have
> been created and given a value.
> I hope thats clear!!!
> How can I do this?
Use a dictionary. Example:
More information about the Python-list