continue
The break statement "jumps out" of a loop.
The continue statement "jumps over" one iteration in the loop.
4.17
6
# Program to show the use of continue statement inside loops
for val in "string":
if val == "i":
continue
print(val)
print("The end")
Thank you!
6
0
Are there any code examples left?
New code examples in category Python