
Jumping statements are the statements that stop the execution of the loop in between or skip out from the iteration.
3 types of jumping statements are:
Python break is used to break the execution of a loop.
for i in range(1,11):
if i==5:
break
print(i)
Python continue statement is used to skip the statements.
for i in range(1,11):
if i==5:
continue
print(i)
Python pass statement is used to do nothing, when you want to pass statement.
for i in range(1,11):
if i==5:
pass
else:
print(i)
Ad: