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 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.
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