?
=?ISO-8859-1?Q?Gregory_Pi=F1ero?=
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?
.... if item==2:
.... alist.remove(item)
....
1
2
Bonus Question:
Can we make this behave more intuitiviely in Python 3000?
-Greg
someone tell me the reasoning behind it? I.E. why is 3 skipped?
.... print itemalist=[1,2,3]
for item in alist:
.... if item==2:
.... alist.remove(item)
....
1
2
Bonus Question:
Can we make this behave more intuitiviely in Python 3000?
-Greg