I am new to Python and experimenting with lists I am using Python 3.2.3 (default, Oct 19 2012, 20:13:42), [GCC 4.6.3] on linux2
Here is my samplecode
Python doesn't support altering the length of a list while you iterate over it. Work on a copy or use a list comprehension instead.
Think about how Python is actually doing the for loop - it counts up through the elements, returning the item at the current index. When you remove one, the index means a different element.