Professional Documents
Culture Documents
Links To Python
Links To Python
com/course/learn-python-
with-abdul-bari/learn/lecture/37193036#overview
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
True
While
Condition
False