examples/strings/break.py
from __future__ import print_function

i = 0
while True:
    i += 1
    if i > 5:
        break
    print(i)
1
2
3
4
5