loops in python

loops in python

Loops In Python

What is loop?

A loop is a way in programming to repeat a set of instructions multiple times until a certain condition is met. It saves time and makes the code more organized by avoiding writing the same instructions repeatedly.

There are generally three types of loops in programming: 

  1. For Loop: A for loop is used to repeat a block of code for a known number of times. 
  2. While Loop: A while loop is used to repeat a block of code as long as a certain condition is true. 

1). For Loop in Python:

    What is for loop? 

            Read more>>

2). While Loop in Python:

        What is while loop?

            Read more>>