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!
@0208hihi13 жыл бұрын
Finally I get it, you are too good in explaining things in a simple yet exhaustive way. You are awesome!!
@anonymousdbl17888 жыл бұрын
3:34 that moment when your teacher doesn't know what he just did
@fatmanlee713 жыл бұрын
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!
@domomort83962 жыл бұрын
hi
@halaosman62107 ай бұрын
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
@suhailabessa9901 Жыл бұрын
finally !! i understand the while loop... Thank you. youre awesom 💓
@Ricky-zc8qm7 жыл бұрын
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.
@movieswithmic1936 жыл бұрын
I have a midterm in two days, thank you sal. 🙏
@onthutemotlhabane5697 Жыл бұрын
Mr Khan!! You are a Legend!!🙌🏾🙌🏾🫡🫡🫡
@Fullrusher5 жыл бұрын
I was learning python and feeling confident until I got to loops lol advice ?
@AS-dr1cp5 жыл бұрын
me too :(
@STAVO.338 ай бұрын
Same,please help
@Fullrusher8 ай бұрын
@@STAVO.33 I gave up, Ai is here now who needs us ?
@sabiansmasher200011 жыл бұрын
wow what dont u do Sal?
@gelerson16427 жыл бұрын
fail. Sal doesn't fail.
@SotosMoud6 жыл бұрын
Came here to ask the exact same thing... This crazy guy...!
@Kev_Dog145 жыл бұрын
Seriously, I wonder what Sal actually finds difficult to understand.
This While loop is infinite. What is missing here? sum=0 i=0 while i
@jw71965 жыл бұрын
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"""
@dipu82713 жыл бұрын
You are simply the best!!
@ayushmishra-on2cs9 жыл бұрын
Thanx once again.After science and maths....now computer u hv helped me lot.Btw hv u done any tutorial of. Java and C??
@mlittleprogramming7804 жыл бұрын
Great video!
@miyoo79993 жыл бұрын
More python vids pls :')
@hz22293 жыл бұрын
Yes same
@federicovazquez90115 жыл бұрын
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?
@leohong55132 жыл бұрын
I thought coding was easy until I learned python! lmao
@vanhalenmk13 жыл бұрын
For commenting out areas at 3:09 you can highlight area to comment out then: hit alt+3 :)
@footballmarketexpert12199 ай бұрын
Remarkable, what is this guy's name?
@abuhena44178 жыл бұрын
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 .
@vindowmaker58198 жыл бұрын
its but 3 months so i guess you must have figured it out by now:
@infamousinz10 жыл бұрын
Ahh programming is confusing....
@murtazahussain63017 жыл бұрын
no
@Marshmallow-bq2lf7 жыл бұрын
ya
@Nk_Lifestyle1 Жыл бұрын
Most of the times it is, but once you find the solution for your problem it so relaxing fun and that's what makes proggraming very strange in a good way
@i.Enigma6 жыл бұрын
Khan is also a programmer :)
@kareemselim28339 жыл бұрын
oh yeah😠😠😠😠😠😠😋😋😋😄😝😚😂😅😡😂😅😝😅😅😡😝😘😘😚😠😂😍😍😜😅😁😄😄😄😄😄😄
@lancejohnson13276 жыл бұрын
Instead of commenting out the code, couldn't you use the break or pass statement?
@saikumar-k7h Жыл бұрын
Hey thank you so much
@ursulamitwoch59198 жыл бұрын
I really need to find where i can download this on mac. I cant find this correspoding app.
@johnpoulsen918 жыл бұрын
+Alex Santouka That would be Text Wrangler or IDLE
@emilhaugen12018 жыл бұрын
Notepad++ also does the job, if you don't mind using the terminal/cmd. (You can even avoid that, if you bother to).
@Christian-dc1sb6 жыл бұрын
@@emilhaugen1201 for a good IDE i recommend pycharm
@lancejohnson13276 жыл бұрын
Can't you just use nano or pico on the terminal on Mac? Just say !# /usr/bin/python at the start so it knows you're using Python latest version.
@valeriatapia11284 жыл бұрын
A good stable text editor for Macs using python is Sublime. It's simple and perfect for Macs
@maribelmendoza75702 жыл бұрын
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?
@HogRiderOfficial Жыл бұрын
Or second thought code something to do that for u in 7 seconds
@davidjuarez925211 жыл бұрын
Can Khan Academy help? Where I can find good information/ can you make a video for Boolean statements? Ex: !(a 0) I'm having trouble preparing for the AP Compsci exam, and Boolean statements are my weakness xP...
@proeditz97632 жыл бұрын
isn't '" supposed to be what turns things into comments for python
@redtuxjellyfoxfidgetworld61382 жыл бұрын
I mean this was 11 years ago XD
@hazzafox3299 жыл бұрын
How can you multply and show a times table using a while loop? for example 2 4 6 8 10 etc
@AstePlougHenriksen9 жыл бұрын
+harry Fox You could basically do it the same way, but you would have to change the sum/total value to 1 from 0, otherwise all results would be 0 when multiplied. You'd also have to change the incremental change to i to 2, so the code could look like this: total = 1 i = 2 while i < 11: total *= i print total i += 2
@quandaledingleberry58313 жыл бұрын
@@AstePlougHenriksen so wrong bro
@juanbarrera50784 жыл бұрын
I still don’t how did you get 6,10,15,21....
@hz22293 жыл бұрын
like 6+4 is 10, then 10 +5 is 15. The number added is one more than the previous one. I think its smth liddat
@Genghiskaran12 жыл бұрын
yea more computer science would be sweet
@tipsbymaithri54695 жыл бұрын
too good
@singhinderjit9513 жыл бұрын
can u make video for ms visual studio c++ and java too, please
@d7oo4357 жыл бұрын
will it's not a good anymore for python 3.xx
@frankien.torbor577310 жыл бұрын
how would you print in descending order?
@partydude12306 жыл бұрын
n = (whatever number you want it to count down from) while n > 0: print(n) n = n - 1
@clashofclanswithitay901610 жыл бұрын
why not def the loop?
@junior1984able13 жыл бұрын
C++ is different
@pencilmein66467 жыл бұрын
Is PyScripter safe to download from sourceforge?
@raminmc69374 жыл бұрын
judt get pycharm
@furssher13 жыл бұрын
good stuff
@arandomperson675311 ай бұрын
❤
@rijaashraf64126 жыл бұрын
how do i install it on a windows computer. plz send a link
@shikharverma86966 жыл бұрын
go to the microsoft
@jakeambrose42947 жыл бұрын
python3- ( mine went to 90 though why? ) sum=0 i=0 while i
@iwinha84957 жыл бұрын
That is because you didn't edit (or comment) the for loop out. At the end of the while loop, sum=45, and the code then goes to the for loop, making sum=90.
@stinkykyle9611 жыл бұрын
the process of scripting isnt a language
@AliG-qx7bn11 ай бұрын
Iam so confused
@sk8nplayguitar4 жыл бұрын
so many numbers in the output The code only had 0 , 1, and 10 😰
@rockyshinde44287 жыл бұрын
where can i find pyscripter plz help!!! :,-(
@fakeshadowhunter20645 жыл бұрын
Spyder's good too
@mohamadjamiluddin80514 жыл бұрын
@@fakeshadowhunter2064 I would reccomend using pycharm
@timan28213 жыл бұрын
...........I LOVE YOU!!!
@UoWealth Жыл бұрын
Ahhhh it is confusing o
@kenonerboy13 жыл бұрын
dun dun duun duuuun
@S190K11 жыл бұрын
are you god
@igrainnegomez10 жыл бұрын
da hora hauhsua
@XxStreaker259xX11 жыл бұрын
python scripting isnt computer science, although it IS a computer language
@lancejohnson13276 жыл бұрын
Correct me if I'm wrong, but if it isn't CS then how come I've taken two CS classes that has Python as the main language in it? Also, CS isn't all about coding.
@lancejohnson13276 жыл бұрын
And sure, you're probably going to say because it's a high-level of abstraction that makes it not computer science. This comment may have been from 5 years ago, so I don't know how you're doing now, but you obviously don't relate to HOW a Computer Scientist thinks.