continue — Intermediate Playground
Skips the rest of the current loop iteration and moves to the next
Python Playground
Output
Click "Run" to execute your codecontinue is useful for guard clauses at the top of a loop body, keeping the main logic un-indented and readable.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?