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 💪
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!
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.
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!
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.
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!
@@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.
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!
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))
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!!
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 ❤
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.
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
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 :)
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
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.
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.
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*
+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
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
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!
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
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
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.
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
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?