Why can't you assign to a list in a loop without enumerate?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Wed Nov 1 10:20:47 EST 2006


Fredrik Lundh wrote:

> define "it".

Sorry! I mean iterating over a list and having the list index
available in the loop. Like:

for i, thing in enumerate(things):
    pass

Regards,


Björn

-- 
BOFH excuse #254:

Interference from lunar radiation




More information about the Python-list mailing list