continue statement


Continue Statement in Python 3:



The continue statement in Python returns the control to the beginning of the current loop.When encountered, the loop starts next iteration without executing the remaining statements in the current iteration.

The continue statement can be used in both while and for loops.

Syntax


continue


Flow Diagram


Example:
When the above code is executed, it produces the following result-