Python continue statement - Tutorialspoint
Python continue statement - Tutorialspoint
It returns the control to the beginning of the while loop.. The continue statement rejects all the
remaining statements in the current iteration of the loop and moves the control back to the top of
the loop.
The continue statement can be used in both while and for loops.
Syntax
continue
Flow Diagram
Example
Live Demo
#!/usr/bin/python
Current Letter : P
Current Letter : y
Current Letter : t
Current Letter : o
Current Letter : n
Current variable value : 9
Current variable value : 8
Current variable value : 7
Current variable value : 6
Current variable value : 4
Current variable value : 3
Current variable value : 2
Current variable value : 1
Current variable value : 0
Good bye!
https://www.tutorialspoint.com/python/python_continue_statement.htm 2/2