In Python, we can change the flow of a loop using the control statements:

  • continue
  • break
  • pass


The continue statement stops the current iteration and goes to the next.


The break statement breaks out of the innermost enclosing for or while loop.


The pass statement does nothing, and is essentially a null statement. For example, it can be used in an if statement to skip the current iteration. It can also be used as a placeholder for future code.