Continue Statement Use In Python

Executes the next statements by skipping some statement (s) iterating in Loop from continue statement.

Use Continue Statement In Python, Continue Statement Condition use In Python

Example of continue Statement Source Code :

nums = [1, 2, 3, 4, 5, 6, 7, 8]

for n in nums :
if(n == 3) :
print("Skipped Element :", n)
continue
print(n) 

Output :

1
2
Skipped Element: 3
4
5
6
7
8