Kodewick
Start learning →
Starter←→0 / 112

Skip the Fours

#111Startercontinue3 min

A lift calls out floors 1 to 6, but skips 4. Show 1, 2, 3, 5, 6, one per line.

You may not delete print(n) — do something before it instead.

Should show
1
2
3
5
6
main.py
for n in range(1, 7):
    # your code here: if n is 4, do not go on with this round
    print(n)
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.