Iteration or Looping constructs

Iteration or Looping constructs


Iteration or loop are used in situation when the user need to execute a block of code several of times or till the condition is satisfied. A loop statement allows to execute a statement or group of statements multiple times.


Python provides two types of looping constructs:

  • while loop

  • for loop