break
❮ Infinite loop continue ❯
examples/strings/break.py
i = 0 while True: print(i) i += 1 if i >= 7: break print("done")
0 1 2 3 4 5 6 done