Python Continue Statement

In this page you learn about of continue Statement is a wall statement that is used to avoid the current restatement and forces next iteration of loop to revenue place. It can be used in while as well as for loop statements.

python-install-javatportal

Example

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