continue in for loop in python code example
Example 1: python continue
for i in range(10):
if i == 3: # skips if i is 3
continue
print(i)
Example 2: python continue inner for loop
If the continue statement is present in a nested loop, it skips the execution of the inner loop only.