Continue Statement

Continue Statement


Continue statement unlike the break statement is used to skip the remaining part of a loop and start with next iteration.

Syntax:

continue

The working of continue statement in for and while loop is shown below.


Example : Program to illustrate the use of continue statement inside for loop

for word in “Jump Statement”:
if word = = “e”:
continue
print (word, end=”)
print (“\n End of the program”)

Output:

Jump Statement

End of the program


The above program is same as the program we had written for ‘break’ statement except that we have replaced it with ‘continue’. As you can see in the output except the letter ‘e’ all the other letters get printed.


Python : Continue Statement Program List




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Website development Company in Allahabad