Simple problem

Angelo Secchi secchi at sssup.it
Thu Nov 13 05:41:11 EST 2003


Hi,
I'm newby to Python with the following problem.
In one of my programs I have the following loop:

for index in markets:
    pippo='firm_'+index
    

where markets is a list ['A','B','C']. In the same loop at each step I
would like to create a new list with name 'firm_A', 'firm_B' and so on.
How can I ask to python to do that?

Thanks.
Angelo  





More information about the Python-list mailing list