Loop with continue

for i in range(1, 7): if i % 3 == 0: continue; s += i → 12

You can also choose a level by clicking its number.

About the course

Description
The continue statement skips the rest of the loop body and moves on to the next iteration
More information
Short programs in Python – what they calculate and what they print.
Sample question
for i in range(1, 7): if i % 3 == 0: continue; s += i → 12
Author
Jiří Preisler
Version
1.0