The continue statement in Python is used to return the control flow of the program to the beginning of a loop. The continue statement rejects all the remaining statements in the current iteration of the loop and moves the control back to the top of the loop. It ignores all the remaining statements in the current iteration of loop and next iteration is resumed.
Consider the following Python code :
for i in range(1,11):
if i%2==0:
continue
print(i,end=' ')

Above code will print all odd numbers between 1 to 10. As for every i = “even number”, print() method will not be considered because of continue keyword.
That’s all about continue statement in Python, see you in the next lecture.
