Javatpoint Logo

91-9990449935

 0120-4256464

Continue Statement

continue Statement is a jump statement that is used to skip the present iteration and forces next iteration of loop to take place. It can be used in while as well as for loop statements.

Continue Statement

eg:

a=0
while a<=5:
    a=a+1
    if a%2==0:
        continue
    print a
print "End of Loop"

Output:

>>> 
1
3
5
End of Loop
>>>

Flow chart of continue:-

Flow chart of continue
Next TopicPython Pass