I am starting to learn python, and playing around with loops and lists. I can't understand how this doesn't continue till printing "The end"
x = [1,2,3,4]
for n in x:
    if len(x) > 0:
        x.pop(0)
        print(x)
    else:
        break
        print("The end")
I get:
[2, 3, 4]
[3, 4]
 
     
    