Fill: Continue Keyword
Fill in the Blank Easy
Question
Fill in the blank to skip even numbers.
Code
for i in range(5):
if i % 2 == 0:
___
print(i)
Hint
The keyword that skips to the next iteration is...
Explanation
continue skips the rest of the current iteration and moves to the next. When i is even, continue skips the print, so only odd numbers (1, 3) are printed.
Related Resources
Related Lessons
- Conditions and Loops
continue keyword.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.