#20 Python Tutorial for Beginners | While Loop in Python

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO20 (20% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

In this lecture, we will learn:
- Loops in Python language
- What is the use of loops?
- While loop and its implementation
- Syntax of the while loop
- Nested while loops in python
- What is the 'end' parameter in python?

#1
- We can execute a statement multiple times, by using the loops.
- There are two types of a loop:
1. For loop
2. While loop

- In the while loop, we need a counter to count the number of times, a statement can be executed.
- We also have to put a condition in a while loop to repeat a statement until the given condition is satisfied.
- The while Loop. With the while loop, we can execute a set of statements as long as a condition is true.
- When the condition becomes false, the line immediately after the loop in the program is executed.
- The value of the counter will increase or decrease until the condition gets false.

#2
- Syntax of the while loop:-
counter variable
while (condition):
statements;
incrementation/ decrementation

- So, there must be three things in a while loop:-
1. Initialization
2. Condition
3. Increment / Decrement
- Nested while loops can also be used in Python.
- Nested while loop simply means that a loop inside another loop.

#3
- To print the values in the same, we use (end=" "). The value will not come in the new line after using it.
- Passing the whitespace to the end parameter (end=' ') indicates that the end character has to be identified by whitespace and not a new line.

Editing Monitors :

More Learning :

Donation:
PayPal Id : navinreddy20
Рекомендации по теме
Комментарии
Автор

"it's not difficult, it's just unfamiliar"
I absolutely love this quote and plan on stealing it for so many things. :)
Also I'll recommend this playlist and give you credit

JoeyFlowers
Автор

So no-one is here after 3 years 😂 except me and still this video is a great solution 😀👍👍

mahadevprasadpal
Автор

Thx a lot i finally understood. I was stuck in this thing for days until I discovered your video.

AdityaPandey-owyu
Автор

The moment you said its not hard its unfamiliar . it boosted me to the sky . Thank you ❤

Chinarkashmirmusic
Автор

"It is not difficult, it is just unfamiliar". This is the quote of the year. Learning any new thing can be viewed from this angle. Thank you. 😊

HayKay_
Автор

I love this channel...
Edureka and Telusko are 2 channels doing more for the students than the education system itself!
Keep growing Sir

rameshbcom
Автор

Thank you so much for putting this together and walking through every step! This is so helpful for learning and really coming to understand how loops work in a programming mindset. I'm going to rewatch it again and again until I memorize this ha!

maresaedwards
Автор

to be honest, you are really a great teacher and a wonderful programmer

fathimaarafa
Автор

downloaded many python courses from different sites, couldn't grasp them very well, this helped
thanks sir
subscribed :)

abhi
Автор

I must say, being a new person to learn programming language, i am having so much of interest and fun for watching your videos, the way you are teaching is marvelous. Thank you so much for making easy task for us.

nalinabk
Автор

Idk why people say they are not able to understand python lectures in English. He taught in such a nice manner . You are an amazing teacher, hats off to you

harshit
Автор

Hello Telusko, I am studying in one of the best university for data science and they gave introduction of python loop which i found it difficult to understand even asking them to explain twice but your 15 mins video made it very simple . Really your amazing and thank you so much .

ashwingunasekaran
Автор

👌👌👌
"it's not difficult, it's just unfamiliar"

tutohowto
Автор

super sir ! i was taught while loop in C in class 11th, 30 years back, the looping now u have explained is marvelous ! Great ! God Bless You !

prashantsaraswat
Автор

After searching so many channels I found your channel for pythod ..
Now my search end here ..
I must say ur python playlist is best on YouTube

stressfree_art
Автор

Dude, Debugging saved my life. I wasn't using it until I watched your videos and now I can see how useful it is.
Thank you so much

MK-yljl
Автор

I was finding a channel for Python learning from basics and then I got this channel (y).
your way of teaching is superb.
Thank you soo much for these videos.

sharukhmemon
Автор

I was not able to understand this concept and found myself as a fresher to this concept, I want to say thank you for making these simple videos so as to make it more "familiar" and "clear" to us and that too in an intresting way🥰

ananyamukherjee
Автор

When everyone is trying to make things mug up, Naveen u stood out for explanation and your explanations are easy and best.
Exceptionally best you are Naveen.

adarshpatodi
Автор

I have never seen in my whole life, a person teaching better than this for if else, while loop explanation...Kudos bro for great job!!

venkatakumaresan