While Loop in Python (Perform a Task 1000000 times With Ease) #8

preview_player
Показать описание
A loop is a fundamental concept in all programming languages, not just Python. The while loop in Python is used to iterate over a block of code as long as the test expression (condition) is true.

In this video, we will learn about the while loop in Python. The while loop evaluates the test condition and runs the body of the loop as long as the test condition evaluates to true. At the end of the video, we will learn to write a program to print the multiplication table of a specified number.

~

Watch our videos and revise them with our Python App!

Timestamps:
0:00 Intro
0:33 Python while Loop
5:45 Multiplication Table using while
8:18 Programming Task
9:03 Recap

Find Programiz elsewhere:
-------------------------------------------------

While Loop in Python (Perform a Task 1000000 times With Ease) #8\

#python #learnprogramming #programiz #whileloop
Рекомендации по теме
Комментарии
Автор

🔥Finding it Damn Hard to Understand Python?
Learn to code—the right way—with interactive lessons, quizzes & challenges. Build a strong programming base; it's IMPORTANT!

programizstudios
Автор

I'm new to programming and I actually find your tutoring awesome.
Thank you.

keghushahembagabriel
Автор

yes sir i have got it without looking in git hub
I just start coding yesterday, this video is very helpful. Code

number = int(input('Enter a number:'))

count = 10
while count >= 1:
product = number * count
print (number, 'x', count, '=', product)
count = count - 1

hyper-thegamechanger
Автор

Best Youtube teacher . Thank you for the wonderful video with Tasks.... your way of speaking is awesome.

smdsongs
Автор

for the programing task you can also do ;

number = int(input("enter the number: "))
count = 10

while count <=10 and count >=1 :
product = number * count
print(number, "*", count, "=", product)
count -= 1


hope it works for you all too

dangerdemander
Автор

Honestly sir! Your lessons are so clear and well laid out, thank you so much!!

Alche__
Автор

Programiz always is helpful for a beginner to learn and understand coding concepts! Looking forward to learning some more advanced concepts with better clarity and approach as always by tutor(Punit).

harsharaj
Автор

num=int(input("enter the number:"))
i=1
while i<=10:
product=(num*i)
print(num, "*", i, "=", product)
i=i+1



output:


enter the number:20
20 * 1 = 20
20 * 2 = 40
20 * 3 = 60
20 * 4 = 80
20 * 5 = 100
20 * 6 = 120
20 * 7 = 140
20 * 8 = 160
20 * 9 = 180
20 * 10 = 200
>



#while loop executes n no of steps in more than one line



#print("Thank you sir, for your brilliant teaching")

sureshvarthya
Автор

Great Explanation Bro!! pehli baar while function samajh main aaya...great job..

mohammadadibaslam
Автор

8:18 I have completed the programing task myself thank you for your explanation and ur support

niran_playzofficial
Автор

number = int(input('Enter the number : '))
count = 10

while (count <= 10) and (count > 0):
product = number * count
print(number, 'x', count, '= ', product)
count -= 1

majidalich
Автор

number = int(input("Enter a number: "))

count = 10

while count >= 1:
product = number * count
print(number, "x", count, "=", product)
count = count - 1

thelegendarysummersky
Автор

Something I thought I understood months ago, after watching this, I made conclusions that I haven't understood it better, until now.

avantika
Автор

a=int(input("enter a number:"))

count=10

while count >= 1:
pro=count*a
print(a, "X", count, "=", pro)
count=count-1

one time correct

kartikudainiya
Автор

Thank you! clean explanation so that I can complete a hw assignment! before I watch the next vid on "for loops" good rec on the app! love the option being able to continue learning :)

hellaevie
Автор

Veryy, Verryyy good explaination of the details of while-loops, he explains every line, and its effect. THANK YOU!!

adabujiki
Автор

These vids are some of the best learning material I've ever seen!

samsquirkshop
Автор

actually you are awesome. probably the best youtube programmer

meraymagdy
Автор

this was very helpful and i also found it better to predict what youre going to do before you do it to see if I've learned

banana_assasin
Автор

thank you so much! i really needed some guidance for my class.

rosaf