Khan, is that you? Familiar voice. You saved my ass from calculus. Now you are saving me from programming. I just want you to know how grateful I am
@yashrajvishwakarma22656 жыл бұрын
yes
@leosteamedbaozi98674 жыл бұрын
yes
@tomlohan93383 жыл бұрын
poggers fish
@siddoesstuffonyt20743 жыл бұрын
khan the messiah
@tusharmaharana33733 жыл бұрын
@@siddoesstuffonyt2074 we can make a religion out of this
@AnikIsGreat2 жыл бұрын
My friends and I don’t really get much from our Comp Sci teacher and try to use outside resources to keep A’s in the class. This video has single-handedly cleared up all of my confusion about for loops. Don’t know if you’ll see this, but thank you Mr. Sal from Khan Academy. You deserve every good thing that comes your way 💪
@Pink_muffn8 ай бұрын
It's astonishing to realize that this video dates back 12 years. Despite its age, he articulates the content with remarkable clarity and presentation. Kudos to you!
@MAZaini939 ай бұрын
I've been trying to understand this for 2 days and my head couldn't wrap around the different variables and what they mean. You broke it down and explained it so well. Thank you so much!
@tolulopetoluwade41167 жыл бұрын
Hello, you're one of the best Python Instructors I have ever come across!!! Thanks for this video, so succinct and precise
@Hp_359 Жыл бұрын
sup bro
@F3EDER6 жыл бұрын
I got stuck in a tutorial understanding what the "for" statement does exactly and this really helped out not only to understand that but also how the loop works! Much appreciation!
@Hype_Machine2 жыл бұрын
What are you doing in life now? Just curious if you became a programmer
@TheRetiredBatman Жыл бұрын
@@Hype_Machineyeah i have the same question hahaha
@TheRetiredBatman Жыл бұрын
What are you doing now?
@AlexanderMccarthey8711 жыл бұрын
This guy knows his stuff. I'm a lot farther than this, I'm just doing a review. He's emphasizing all of the important stuff that you need to know later. A lot of the other tutorials don't do that. Plus, he's doing it in such a way that you know everything you need to know and you can fully understand the concept. This is one of the best tutorials I've seen.
@apprendredavantage Жыл бұрын
I agree with your comment, He is the best
@esadmusic68956 жыл бұрын
i paid for a course and had to come here to get loops explained better and I was not disappointed thanks a lot.
@cyber3572 Жыл бұрын
i absolutely love the way you explain things, easy to understand and step by step explaining everything logically so that anyone can understand, thank you.
@shekharkumar19024 жыл бұрын
None of youtubers explain for loop in such a simple and shober way! Amazing and kudos
@Ben--Samsara10 жыл бұрын
So much clearer than the tutorials I've worked through. Thanks!
@ruffraff3176 Жыл бұрын
Thanks very much for breaking this down. Doing a course online and could grasp what exactly happens with for loops. Much clearer now. Cheers
@samsepiol55337 ай бұрын
First Khan Academy video and it's already helped me so much. Want to thank everyone who recommended these to me for my Comp Sci journey!
@Phymacss Жыл бұрын
I always had trouble understanding for loops, but it’s very easy now. Thanks a lot!!! Literally the best educational channel to exist. It teaches anything and everything!
@Ezekiel_unabor Жыл бұрын
Just wow wow. I want to say thank you again. Ive been trying to grasp the for loops for threee days now. And a ten minute video with you made me understand. Thank u so much ❤
@razzon1012 жыл бұрын
3:02 I've been stuck on this for 2 days! Thank you for explaining so clearly
@Jon-zf3dq6 жыл бұрын
What don't you know? It's remarkable how much you've helped me in college.
@sangram3612 жыл бұрын
sir u r really great,finally i understand what is for loop at my age 30,before it was my mugged up concept,god bless u
@remixowlz6 жыл бұрын
I Thank You from the bottom of my heart! My lecturer/tutor taught me multiple times about looping but nothing sank into my brain. Signed up for Online Courses and did not work as well! Not as detailed as your teaching! Sir thank you once again!!
@cboyslim54905 жыл бұрын
taking my intro to python in a zybooks based college class. everything was a well described (for the most part) process up til the chapter on loops. they worded it so stupidly, and the exercises are a joke or god mode programming on little instruction... i was panicking a bit until i got to your vid. thank you so much. makes more sense now . ez thumbs up n sub
@wannacry73484 жыл бұрын
Man I've been staring in front of monitor for 3 hours looking for this solutions. While all I have to do is open utube and watch ur video. Thankyou very much
@Ricky-zc8qm7 жыл бұрын
For Python 3.6+ users: range (6) --> range (0,6) To get the list out type in ---> list (range (6)) range(0,8,2) --> range (0,8) To get the list out by 2 type in ---> list (range (0,8,2))
@parce117264 жыл бұрын
Thank you, you just made my day I couldn't find anywhere how to use the range concept in python 3
@anah72494 жыл бұрын
You are the best person that explain the loop for us .thank you so much, I appreciate what you did for us. thank you
@musamohannad15986 жыл бұрын
What does this guy not know 😣😣😣
@edwarddorelien19696 жыл бұрын
facts
@Grumpy_Wolf6 жыл бұрын
how to properly teach.
@jw71965 жыл бұрын
I'd like to have known what Hazeem didn't understand.
@bilalwarsi334 жыл бұрын
@@Grumpy_Wolf What is wrong with you? Pay better attention kid.
@Grumpy_Wolf4 жыл бұрын
@@jw7196 FIrst off, learn to hit the reply button, second off you have clearly never watched a good instructor. This guy is horrible at everything he teaches.
@franzbiberkopf91794 жыл бұрын
Absolutely the best Python-tutorial ever together with the videos of CS Dojo! Sorry, but the rest on the Tube is absolutely incompetent in comparison with the above mentioned.
@manhaabdellah26822 жыл бұрын
Great job! He literally knows all the subjects its so amazing
@2Faded12 Жыл бұрын
This is the best explanation of for loops I've seen
@Whattheugi11 жыл бұрын
For python 3 type list(range(6))
@chancewilliams66610 жыл бұрын
print(list(range(100)))
@MajedDalain7 жыл бұрын
it works (Y)
@Ricky-zc8qm7 жыл бұрын
Great video and explanation. I had a hard time understanding how loops instructed computers to do what. You explained it very well, thanks.
@OlaStae8 ай бұрын
Great thank you for this beneficial video😊
@raheem6446 Жыл бұрын
wow best tutorial video I've seen so far! subscribed.
@lengher26179 жыл бұрын
I just want to say these video actually help me understand what's going on with programming.
@USELESSFACTSDAILYDAY2 жыл бұрын
Best explanation for in loops everything is break down. Best video I'm learning for in loop now watch so many video and read book couldn't understand it you made sound like 1+1=2 so clean explanation sub keep making more video you are a amazing teacher.
@adanascencio39242 жыл бұрын
This was great, thank you and thank that board of yours!
@simonasopagaite10 жыл бұрын
Very clear explanation, thank you so much!
@iamnidal8 жыл бұрын
many people who teach this don't talk about what the "i" means, i love you for explaining it .. XD
@jessewhite96384 жыл бұрын
this is the best for loop explanation ive seen so far
@MM-oq1lb Жыл бұрын
This is the best best best best ever explanation ever! I wonder if this man has a Python full course?
@khanacademy3 ай бұрын
We do offer a full Python course with more videos and programming practice! Check it out on the Khan Academy site: www.khanacademy.org/computing/intro-to-python-fundamentals
@OliverGomes7 жыл бұрын
I didn't know KA does python tutorials until now !!! WOW ! this is very helpful
@KojoHandel3 ай бұрын
oh my God this video has been so so helpful sir. subscribing to this channel right away!
@khanacademy3 ай бұрын
Wonderful! You might be interested in our new, updated Python content, too: kzbin.info/aero/PLSQl0a2vh4HDkbhG0sDW0b-VZXykEIAe5
@rajendrakv86884 жыл бұрын
You explained For loop very well. Anyone can understand, especially people like me , new to coding. keep it up
@wesmoto25504 жыл бұрын
wrt tech channel has some good python videos that you may like
@anponioparques7058 ай бұрын
So happy: one phrase you said and I could finish my homework.
@emmanuelleallen11 ай бұрын
I saw that this video was 12 years old, and though "oh wow, this came out a long time ago, in the pioneer days of programming." But then i stopped to think how long ago 12 years was. And its onlt 2012. 😢 and I recognized the voice and the content style, and recognized i was on Kahn academy. I used Kahn academy for crash courses in my physics classes in highschool. Who knew id be coming back a decade later for any reason at all. Such a strange world we live in.
@Infoflexy4 жыл бұрын
at 3:32 sal did not put bracket() or parenthesis that explains python 3 and python 1.9 people say it's python 2 it isn't
@Farzaneh589 жыл бұрын
I couldn't get a sense of basics of for loops in the two Python books that I am reading. Thanks for the awesome explanation!
@ParishRoger311 жыл бұрын
Thanks so much! I have been looking for a good explanation of for loops because every other place seems to touch it vaguely.. Thanks for the education!
@myenjoyablehobbies6 жыл бұрын
That was a very, very well put together tutorial, you did on this. Thank you!
@anusmitasamanta26085 жыл бұрын
Very nice explanation....thank you so much!
@nr13418 жыл бұрын
oh my god. I sort of knew how to use these for years, I even had an intro class on Python, but I didn't understand really that it was generating a list. Oi. Thanks so much your explanation was great
@normanmwanza822511 ай бұрын
may GOD bless you sir you are a teacher indeed
@joealahaa726110 жыл бұрын
this will be my tutorial for for loops, was nicely explained and will be useful to look back on as revision. thanks
@cheryllewman8 жыл бұрын
Please do these videos for Python 3! So much doesn't work the same and it's left me confused. Otherwise, these videos are FABULOUS!!!
@kylerollins64838 жыл бұрын
+Mamawolfe I found what to do after doing a little digging: >>> for i in range(5): print(i) and then hit enter. I tried doing just range(0,6) and it just gave me (0,6). Didn't know if that's what you were referring to
@jeffhardyextremematt8 жыл бұрын
list(range(1,4,1)) will be proper syntax in python 3
@diegosalinas1771 Жыл бұрын
Fantastic video. Thank you and god bless.
@vikasbawa46775 жыл бұрын
Thank you for explaining it in detail. Much appreciated.
@leoshad92 жыл бұрын
Masha ALLAH you guys the best!
@StevenMarieChoseTheGoodLife Жыл бұрын
finally I understand it thank you, you'll be credited on my cv.
@williamjayaraj22442 жыл бұрын
Thank you for the good explanation of ' for ' loop.
@shaanses4510 Жыл бұрын
Bro i have my practical tomorrow and i dont even know single thing about loop but just in 3 min of ur video i got all of it
@shadedmw9 жыл бұрын
really well explained and very useful. Thank you for this tutorial.
@JoJo-cw8os8 жыл бұрын
wow love this! i totally understand. finally.
@grapefives77626 жыл бұрын
same lol and i just did a list of square numbers from 1-16!
@VictorTrintea8 жыл бұрын
Thank you for making the things so easy to understand!
@hungnoobxd24819 ай бұрын
wow i am so lucky that i found you! Cant even do this without u
@tonnymuthiora66005 ай бұрын
in all honesty, this guy is a big upgrade to "ndume iko busy"
@EricaHigley9 жыл бұрын
my last midterm in my python class was pretty much all for loops. i had no idea how to really do them so i ended up getting a D. I wish I had watched this video before, but at least now I'm confident my final will go well. thank you :) *like*
@TheGuyBehindY0u11 жыл бұрын
I have Python 3.3.2 btw My dad and I are trying to work it out (probably a bad Idea) I'm 12 and I'm intending to learn python to enter a competition where 12 - 18 year old kids have to write any program and the winner will get a prize, it is a mystery each year though :)
9 жыл бұрын
But still................................................................................ YOU AND YOUR EXPLANATIONS ARE AWESOME :):):):)
@antames13 жыл бұрын
It doesn't matter which language is taught/learnt first, because ultimately they all contain the same format for writing programs, with minor differences in wording. Python is good to start with; C++ and Java are a bit more complex but after learning the fundamentals in Python it will make more sense. I hope C++/Java is taught later on, as well as CSS, HTML and PHP.
@ibekwevictor11582 жыл бұрын
Thanks for this tutorial. I Really appreciate
@Belalrazaa Жыл бұрын
sir make more videos of programming u r great❤
@gem21404 жыл бұрын
This still works! Thanks lol! -2020
@oriakporovieemmanuel8841 Жыл бұрын
This is helpful. Thanks a million
@jmorgan73177 жыл бұрын
Thank you so much, your a life saver, explained it so clearly
@renukasachdeva Жыл бұрын
good one... thanks for posting this
@shehansithija73975 жыл бұрын
superb.. it's very useful
@Phaqui13 жыл бұрын
Just to clarify: At 7:26, you say that the i variable can only be used inside of the for clause. Actually the python documentation is clear on this: the i variable will not be deleted after the for clause. It can still be accessed, and will in this example point to (or contain) the number 9. docs.python.org/reference/compound_stmts.html#the-for-statement
@Ezekiel_unabor Жыл бұрын
Thank u. Ur a great teacher
@Ryan_online5 жыл бұрын
thank you for educate us with your amazing skills
@Arabic_guy20245 жыл бұрын
Thanks for such a clear explanation
@albinarafis528911 жыл бұрын
wow great tutorial It really explains how that anyone can undersatnd Thank you
@GallusSapien9 жыл бұрын
00:42 that is not what happens when i do this >>> range(6) range(0, 6) >>>
@OperationCrossTraining9 жыл бұрын
+GallusSapien you need to use the code ->> list(range(6)). In python 3.5 and above, it uses a different output.
@synideelixir38974 жыл бұрын
@@OperationCrossTraining Thank You.
@NeverMyRealName13 жыл бұрын
you shoujld do tutorials in C i learned programming this way and it helped me out a lot
@fsaforosaforo63384 жыл бұрын
Hi, yes you have helped me a great deal in math. Can you use range on a string that is being put in a list format?
@bilalwarsi334 жыл бұрын
you can, as long as you use the "if" function. It's pretty simple!
@hayleygibbs6475 жыл бұрын
Thank you it helped me :) this is what I learned in JavaScript lol
@beachboybali79259 жыл бұрын
thats really helps me and good explanation .thanks
@motivationpouretudier24607 жыл бұрын
Very cool tutorials, and like the way you explain, clear and fun ;) Hope I will learn python entirely ( or maximum I can )
@JoeyCha12 жыл бұрын
Python helps in a lot of complicated things like the patterns he uses to make an example,
@nidaleeforlife169310 жыл бұрын
thank you, better than codeacademy explenations that's for sure.
@sofitocyn1004 жыл бұрын
very well explained. I'm thankful!
@mhassan61655 жыл бұрын
its amazing bro. thanks.
@nakamuramizu..5849 ай бұрын
I have a test tomorrow and I don't know anything so thank you!
@PhilBailey6 жыл бұрын
Video is dated, some of these don't seem to work as well in PY 3.6. Thanks for the info. You explain well.
@swallowedinthesea116 жыл бұрын
Use the print() in Python 3; print(sum)
@LalaiSison6 жыл бұрын
Hi. I would like to ask if I really need that Python Interpreter and pyscripter for me to do this loop? If yes, is there any other programming language that I can use without installing anything?
@MrTSUUA10 жыл бұрын
I feel like this guy could do a killer Samuel Jackson impression if he gave it a try
@joshambush85746 жыл бұрын
MrTSUUA 😢😂🤣
@johnwilliams9834 жыл бұрын
🤣
@jereziah7 жыл бұрын
how come these aren't available in the iOS/Droid apps?! I wanna take them mobile >
@arieljj48968 жыл бұрын
SO how would I do 1 hello world 2 hello world 3 hello world this is my homework and when I submitted my professor said I had to do a for-loop, but nothing I'm doing is working. Please help!
@video_games238 жыл бұрын
for i in range(1,4): print (i,"hello world") Play around with that a little and you'll get it down. Coding can be frustrating at start.
@MrS68 жыл бұрын
so how would you do it without the numbers at the start of the words?
@video_games238 жыл бұрын
for i in range(1,4): print ("hello world")
@1000animeboy8 жыл бұрын
for x in {1,2,3}: print x,"hello world"
@guitaristAustin8 жыл бұрын
concatanate it. >>> print "%r hello world" %r my_var You could use a different string operator there like %i or %d (I used r just because var "i" was the default variable in the for loop)
@profipix9 жыл бұрын
Good explanation, man! Helped me out a ton
@adambloodworth70429 жыл бұрын
yo this shit is helpful af
@JackEacher2 жыл бұрын
does this mean that for loops always involve some kind of range?
@ocean_princess2 жыл бұрын
Yes!
@everwhat5411 жыл бұрын
this is why you need to type for i in range(5): if u forget the : it tells it the line ends here if u put : then it will read that it will keep going on and go to the next line so u can finish the program. hope you understand i am also new and learning. xD