numbering variables

remi remi at non.com
Mon Mar 28 13:39:17 CEST 2005


Hello,

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.
Rémi.



More information about the Python-list mailing list