summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/while_nest_exc.py
blob: 35a23a9cf7f468fd5e90c53ddc7b1e13bd19db96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# test nested whiles within a try-except

while 1:
    print(1)
    try:
        print(2)
        while 1:
            print(3)
            break
    except:
        print(4)
    print(5)
    break