Python- While loop intro
Good Morning boys
Today we will take a step ahead into the concept of looping, with an introduction of the WHILE loop
--------------------------------------------------------------------------------------------------------
By the end of this session, you will be able to:
The Google meet link for the class today is:
Today we will take a step ahead into the concept of looping, with an introduction of the WHILE loop
--------------------------------------------------------------------------------------------------------
By the end of this session, you will be able to:
- understand the need for while loop
- Understand the syntax of the WHILE loop
- Apply the loop to get the desired result
- Predict the output for a group of statements.
The Google meet link for the class today is:
-------------------------------------------------------------------------------------------------------
Python while loop
- The while loop is also known as a pre-tested loop.
- In general, a while loop allows a part of the code to be executed as long as the given condition is true.
- It can be viewed as a repeating if statement.
- The while loop is mostly used in the case where the number of iterations is not known in advance.
The syntax is given below.
![]() Example 11
2
3
4
5
6
7
8
9
10
|

Good morning ma'am
ReplyDeletegood morning mam
ReplyDelete-ashish
Good morning mam
ReplyDelete-Aaron David
Good morning ma'am
ReplyDeleteKrish
Good morning ma'am
ReplyDeleteTejas