Removing from a List in Place

bayerj bayerj at in.tum.de
Tue Sep 5 19:05:36 EDT 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