summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/break.py
blob: c303ea0b3e52037c41956c6212219aad61ade940 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
while True:
    break

for i in range(4):
    print('one', i)
    if i > 2:
        break
    print('two', i)

for i in [1, 2, 3, 4]:
    if i == 3:
        break
    print(i)