continue Statement
I don't understand what the continue statement really does. At first, to understand the function of a while statement, I took this example: i = 1 While i <= 5: print (i) i = i+ 1 This code will run multiple times as long as i <= 5 . But why in the output of the following code, these numbers are displayed even if we do not add: 'print(i)' i = 0 while True: i = i +1 if i == 2: print("Skipping 2") continue if i == 5: print("Breaking") break print(i) print("Finished") What is the meaning of: "while True?" And then , The execution will continue until i = 5, it is the fact that continue stops the current iteration which is : i = i + 1 if i == 2: print("Skipping 2") And continues with the next one which is: if i == 5: print("Breaking") the question here is : if we didn't add the break statement, the execution won't stop , this means; the program would indefinitely print the result of i = i + 1; which means that continu will not stop the first iteration once and for all. what is the exact function of continue Statement? How does it work? I am so confused, I hope you understand what I meant.