Python continue statement

The continue statement is used in a loop to go back to the beginning of the loop. It means, when continue is executed, the next repetition will start. When continue is executed, the subsequent statements in the loop are not executed. .

syntax of continue :

CopiedCopy Code

looping structure
  if(particular itraticve value)

continue statement example:

Sample program:A Python program to display numbers from 1 to 5 using continue statement.

CopiedCopy Code

x = 0 
while x<10: 
    if x>5:
    print ('x=', x) 
print("Out of loop")