For loop does not iteration for whole list
I'm having a hard time understanding what your question is, but I'll try to identify some easier way to go about the problem.
Can you just make a new list that contains the new values, instead of removing from the old? For instance:
list = []
myList = [0,1,2,2,3,0,4,2]
for i in myList:
if i != 2:
list.append(i)
I think python's getting confused when you remove elements in the middle of a loop like that.
*Side note - to place inline code in stack overflow, put 4 spaces, then the line of code.