Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Learn Python Programming - Beginner to Master: https://www.udemy.

com/course/learn-python-
with-abdul-bari/learn/lecture/37193036#overview

Lecture No. 44, 45

Loops in Python

Loos are the repeating statements that appear in programs. There are two types of repeating
statements in Python.

While loop
and for loop.
(One More) for each loop.

So if you want these set of statements to execute repeatedly, then we use loops.
That is, these statements will be called as repeating statements.
So this repeatedly execution of the statements can be done using either while loop or for loop.
There are two ways of repeating the statements.

1. One is you can repeat the statements for some number of times
2. or you can repeat them as long as the condition is true.

while condition:
_________
_________
_________
Change in condition variable/expression

Will continue till the condition is true.

True
While
Condition

False

You might also like