Removing from a List in Place

bayerj bayerj at in.tum.de
Wed Sep 6 01:05:36 CEST 2006


> I'm going to assume that it's supposed to work like this, but could
> someone tell me the reasoning behind it?  I.E. why is 3 skipped?

Because:

>>> alist[2]
3

You are removing the third item, not the second.




More information about the Python-list mailing list