iterateing over a list python program : hey guys i wanted know how to iterate over a list in my code  i want to get rid of every index value that is equal to 10 and,get rid of it after completing the program i got an index out of range error.I wanted to know what that means and how could i refine my code so that i get rid of every value that is equal to ten and then return the new list without the ten values
 here is my code

    mylist = [10,10,10,10,10,10,9,9,9,9,9,0,0,0]
    for i in range(len(mylist)):
    if mylist[i] ==10:
    mylist.pop(i)

		
    print( mylist)
	