There are two types of repetition control instructions in python.
3
- while loop
- for loop
1.) while Loop:
- A while loop allows a part of code to be executed as long as the given condition is true.
- The while loop is used to repeatedly execute instructions as long as expression is true.
- A while loop is used in the case where the number of iterations is not know in advance.