Loops make our code more manageable and organized.
Different types of loops are:
1. While Loop
The While loop can execute a set of commands till the condition is true
While Loops are also called conditional loops
Once the condition is met then the loop is finished
2. For Loop
For loop is needed for iterating over a sequence. A for loop executes for a specific number of times.
3. Nested Loop
Any loop in program may contain another loop inside it. When there is a loop inside another loop, it is called a nested loop.