demo_while_break.py:
i = 1 while i < 6: print(i) if (i == 3): break i += 1
➜ begtut>python demo_while_break.py
1
2
3