0

Can somebody explain me the algorithm behind continue and how its working here

https://code.sololearn.com/c9hP5P212LLq/?ref=app

5th Mar 2021, 5:59 PM
Ira Sarkar
Ira Sarkar - avatar
2 Respuestas
+ 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.
5th Mar 2021, 7:12 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 1
Visualize code execution https://pythontutor.com
5th Mar 2021, 7:08 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar