a = [1, 2, 3, 4, 5, 6] for x in a: if x == 4: break print(x)
a = 0 while a < 6: a += 1 if a == 4: break print(a)