numbering variables

remi remi at
Mon Mar 28 13:39:17 CEST 2005


I have got a list like : mylist = ['item 1', 'item 2',....'item n'] and 
I would like to store the string 'item1' in a variable called s_1, 
'item2' in s_2,...,'item i' in 's_i',... The lenght of mylist is finite ;-)
Any ideas ?
Thanks a lot.

More information about the Python-list mailing list