0
Can somebody explain me the algorithm behind continue and how its working here
2 odpowiedzi
+ 3
the continue statement jumps back to the beginning of the loop without finishing its current iteration over the loop code block. It’s like “skip the rest of this round, but don’t quit. Keep going.“
it’s sister statement, the “break“ statement, cuts off the loop code and exits the loop. “Continue“ is more gentle.
+ 1
Visualize code execution
https://pythontutor.com