demo_while_break.py:
i = 1 while i < 6: print(i) if (i == 3): break i += 1
C:\Users\My Name>python demo_while_break.py
1
2
3