Delete Starting Even Numbers

Challenge 3

def delete_starting_evens(lst):
    for i in lst:
        if i % 2 == 0:
            lst.remove(i)
        else:
            break
    return lst

print(delete_starting_evens([4, 8, 10, 11, 12, 15]))

I do not understand why my code is outputting [8, 11, 15]. the output should be [11, 12, 15].

Any help would be appreciated, thanks!

Hi,
You’re changing the thing you’re iterating over.
So, once it removes 4 on the first loop, i becomes the second thing in lst which is now 10 (8 is now first).

Hope that helps