summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/while1.py
blob: a9bb5d2792647dd1c43adb25d418039cb3069207 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# basic while loop

x = 0
while x < 2:
    y = 0
    while y < 2:
        z = 0
        while z < 2:
            z = z + 1
            print(x, y, z)
        y = y + 1
    x = x + 1