Python continue statement is used to tell python to skip the rest of the statements in the current loop block and to continue to the next iteration of the loop.
Python continue syntax:
continue
Python continue flow diagram:
Python continue Examples:
1. Skip the iteration if x value reaches 4 and continue for execution further iterations.
for x in range(1,10): if x==4: continue print(x)
output: