continue — Expert Playground
Skips the rest of the current loop iteration and moves to the next
Python Playground
Output
Click "Run" to execute your codecontinue compiles to a JUMP_ABSOLUTE back to the FOR_ITER instruction at the top of the loop, while break jumps past the loop. Both are simple unconditional jumps.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?