What is the syntax to continue a loop?

continue
#skips rest of loop and immediately moves execution to the beginning of loop
#example
for letter in "Hello":
    if letter=="e":
        continue
    print(letter)

#output
H
l
l
o

 

 

 

 

Advertisements