weird iteration/assignment problem

cirfu circularfunc at yahoo.se
Fri Jun 13 11:00:39 EDT 2008


for i in xrange(0, len(texts)):
        texts[i] = "yes"

for i in texts:
    i = "no"

why is the first one working but not the second. i mean i see why the
firts one works but i dont udnerstand why the second doesnt.



More information about the Python-list mailing list