[Newbie] How to manipulate variable _names_ ?
baf at texas.net
Thu Jun 27 14:43:01 CEST 2002
I have a program that requires the user to enter a file name, such as
"othello," which the program will then open, process, and create a
dictionary based on the contents of the file. I would like to name
the dictionary "OthelloCount," and then go on and create more
dictionaries, each with a name made up of the inputfile name as
provided by the user, concatenated with "Count," but I do not know how
to make a variable name based on input.
More information about the Python-list