L=[10,19,20,30,8,11,9]
i=0
while i==0:
    while L[i]<=12:
        i+=1
    else:
        L.pop(i)
        i=0
Hello, I want to remove values, which are bigger than 12, from the list. I get the list I want, but I also get an error message, which says "list index out of range" even though I make i=0 at the end of loop. How can I fix it?
 
     
     
     
     
     
    