[Tutor] question about removing items from a list

John Kenyon John.Kenyon@mail.idrive.com
Tue, 14 Aug 2001 17:42:32 -0700


Can anyone explain why the following works the way it does?

>>>lista = ['a', 'b', 'c', 'd']
>>>for item in lista:
...	lista.remove(item)
...
>>>lista
['b', 'd']

thanks much,

jck