variable name using a for

Alex alx5962NOSPAN at yahoo.com
Tue Mar 2 13:52:18 EST 2004


Hi
I would like to create a variable (a string) in 'for' statement with a name
linked to the for value.
Like this:
for y in range(nbSujets):
    name + str(y) = 'abc'

But it doesn't work with Python.... I read the official documentation but I
was not able to find infos about this..
How to make this works please?

Thanks
Alex





More information about the Python-list mailing list