programmatically define a new variable on the fly

Roberto Bonvallet rbonvall at gmail.com
Fri Aug 10 01:22:14 CEST 2007


On Aug 9, 6:11 pm, Lee Sander <lesa... at gmail.com> wrote:
> I would like to define a new variable which is not predefined by me.
> For example,
> I want to create an array called "X%s" where "%s" is to be determined
> based on the data I am processing.

Use a dictionary.




More information about the Python-list mailing list