generating unique variable name via loops

Fatih Güven mfthguven at
Tue Nov 4 12:29:20 CET 2014


I want to generate a unique variable name for list using python.

listx=... where x is a number.

You can remember it from saving a file in a directory. If you have already created a "new file", save dialog sugget that <<"new file " is already exist, do you want to save it as "new file (1)"?>> so I want to apply it for list names. 

Do you any idea about this.

More information about the Python-list mailing list