0
Can somebody explain me the algorithm behind continue and how its working here
2 Answers
+ 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