While Loops in Python

preview_player
Показать описание
Seeing that a while loop can do the same thing as a for loop
Рекомендации по теме
Комментарии
Автор

Man, I have been stuck in my assignment for 2 weeks! You explain python better than all of my tutors and teachers! I finally understand while loops because of you! Thank you so so so much!

dudermcgavin
Автор

3:34
that moment when your teacher doesn't know what he just did

anonymousdbl
Автор

Finally I get it, you are too good in explaining things in a simple yet exhaustive way. You are awesome!!

hihi
Автор

I like the while loops more than the for.
For is shorter, but it seems less intuitive and harder to understand for someone who doesn't know what for does.

Ricky-zcqm
Автор

I have a midterm in two days, thank you sal. 🙏

movieswithmic
Автор

finally !! i understand the while loop... Thank you. youre awesom
💓

suhailabessa
Автор

HOW IS THIS POSSIBLE?! Khan! I learned Chem from this channel 3 years ago in high school, and now I am in college learning programming off this channel again!

fatmanlee
Автор

you need more vids on this subject plz

aHASDfawlkjfa
Автор

3:32 "What did I do? What is that thing?" Made me laugh so hard! 😂
Ur teachings r great, btw! At least better than my teachers anyway =D

halaosman
Автор

So while loops are there to go from 0 to whatever is less then?

For example if the while loop were to say while i is less than 20, then it would add the sum up all the way to 19?

federicovazquez
Автор

Thanx once again.After science and maths....now computer u hv helped me lot.Btw hv u done any tutorial of. Java and C??

ayushmishra-oncs
Автор

Can I ask if how to make a python program that would ask the user to enter a number from 1 to 26? Then based on the number entered by the user, display or output the letter equivalent of the number?

maribelmendoza
Автор

For commenting out areas at 3:09 you can highlight area to comment out then: hit alt+3 :)

vanhalenmk
Автор

I was learning python and feeling confident until I got to loops lol advice ?

Fullrusher
Автор

You can comment out multiple by using triple quotes.

For example, indtead of:

# This is an example of commenting
# out mulple lines with triple quotes

You would say:

"""This is an example of commenting out mulple lines with triple quotes"""

jw
Автор

Cried over this python assignment only for khan academy to re-educate me again

Shlngmaster
Автор

I am a beginner in python language. I have some code inside for/while loop and also have another loop outside the 1st loop. I mean 2 more loops are not nested . How can the python program understand all the loops are not nested and which statement will be the end of the loop . For example, In C program we use 2nd brackets to identify the beginning and the end of the loop .

abuhena
Автор

I thought coding was easy until I learned python! lmao

leohong
Автор

Can Khan Academy help? Where I can find good information/ can you make a video for Boolean statements? Ex:
!(a <= b) && (a * b > 0)
I'm having trouble preparing for the AP Compsci exam, and Boolean statements are my weakness xP...

davidjuarez
Автор

will it's not a good anymore for python 3.xx

doo