For Loops in Python

  Рет қаралды 793,422

Khan Academy

Khan Academy

13 жыл бұрын

Basics of for loops in Python

Пікірлер: 343
@zoobafornow
@zoobafornow 9 жыл бұрын
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
@yashrajvishwakarma2265
@yashrajvishwakarma2265 6 жыл бұрын
yes
@leosteamedbaozi9867
@leosteamedbaozi9867 4 жыл бұрын
yes
@tomlohan9338
@tomlohan9338 3 жыл бұрын
poggers fish
@siddoesstuffonyt2074
@siddoesstuffonyt2074 2 жыл бұрын
khan the messiah
@tusharmaharana3373
@tusharmaharana3373 2 жыл бұрын
@@siddoesstuffonyt2074 we can make a religion out of this
@pinkmuffincodm3808
@pinkmuffincodm3808 4 ай бұрын
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!
@AnikIsGreat
@AnikIsGreat Жыл бұрын
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 💪
@MAZaini93
@MAZaini93 5 ай бұрын
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!
@Phymacss
@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!
@shekharkumar1902
@shekharkumar1902 3 жыл бұрын
None of youtubers explain for loop in such a simple and shober way! Amazing and kudos
@Ben--Samsara
@Ben--Samsara 9 жыл бұрын
So much clearer than the tutorials I've worked through. Thanks!
@cyber3572
@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.
@tolulopetoluwade4116
@tolulopetoluwade4116 7 жыл бұрын
Hello, you're one of the best Python Instructors I have ever come across!!! Thanks for this video, so succinct and precise
@HarshPatel-so7gl
@HarshPatel-so7gl 10 ай бұрын
sup bro
@esadmusic6895
@esadmusic6895 6 жыл бұрын
i paid for a course and had to come here to get loops explained better and I was not disappointed thanks a lot.
@AlexanderMccarthey87
@AlexanderMccarthey87 11 жыл бұрын
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
@apprendredavantage 7 ай бұрын
I agree with your comment, He is the best
@F3EDER
@F3EDER 5 жыл бұрын
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_Machine
@Hype_Machine Жыл бұрын
What are you doing in life now? Just curious if you became a programmer
@TheRetiredBatman
@TheRetiredBatman 7 ай бұрын
​@@Hype_Machineyeah i have the same question hahaha
@TheRetiredBatman
@TheRetiredBatman 7 ай бұрын
What are you doing now?
@musamohannad1598
@musamohannad1598 6 жыл бұрын
What does this guy not know 😣😣😣
@edwarddorelien1969
@edwarddorelien1969 5 жыл бұрын
facts
@Grumpy_Wolf
@Grumpy_Wolf 5 жыл бұрын
how to properly teach.
@jw7196
@jw7196 4 жыл бұрын
I'd like to have known what Hazeem didn't understand.
@bilalwarsi33
@bilalwarsi33 4 жыл бұрын
@@Grumpy_Wolf What is wrong with you? Pay better attention kid.
@Grumpy_Wolf
@Grumpy_Wolf 4 жыл бұрын
@@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.
@ruffraff3176
@ruffraff3176 9 ай бұрын
Thanks very much for breaking this down. Doing a course online and could grasp what exactly happens with for loops. Much clearer now. Cheers
@Ezekiel_unabor
@Ezekiel_unabor 9 ай бұрын
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 ❤
@anah7249
@anah7249 4 жыл бұрын
You are the best person that explain the loop for us .thank you so much, I appreciate what you did for us. thank you
@Jon-zf3dq
@Jon-zf3dq 5 жыл бұрын
What don't you know? It's remarkable how much you've helped me in college.
@Ricky-zc8qm
@Ricky-zc8qm 7 жыл бұрын
Great video and explanation. I had a hard time understanding how loops instructed computers to do what. You explained it very well, thanks.
@remixowlz
@remixowlz 6 жыл бұрын
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!!
@myenjoyablehobbies
@myenjoyablehobbies 6 жыл бұрын
That was a very, very well put together tutorial, you did on this. Thank you!
@samsepiol5533
@samsepiol5533 2 ай бұрын
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!
@simonasopagaite
@simonasopagaite 9 жыл бұрын
Very clear explanation, thank you so much!
@wannacry7348
@wannacry7348 3 жыл бұрын
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
@manhaabdellah2682
@manhaabdellah2682 Жыл бұрын
Great job! He literally knows all the subjects its so amazing
@lengher2617
@lengher2617 8 жыл бұрын
I just want to say these video actually help me understand what's going on with programming.
@Farzaneh58
@Farzaneh58 9 жыл бұрын
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!
@OliverGomes
@OliverGomes 6 жыл бұрын
I didn't know KA does python tutorials until now !!! WOW ! this is very helpful
@VictorTrintea
@VictorTrintea 8 жыл бұрын
Thank you for making the things so easy to understand!
@vikasbawa4677
@vikasbawa4677 5 жыл бұрын
Thank you for explaining it in detail. Much appreciated.
@razzon101
@razzon101 Жыл бұрын
3:02 I've been stuck on this for 2 days! Thank you for explaining so clearly
@jessewhite9638
@jessewhite9638 4 жыл бұрын
this is the best for loop explanation ive seen so far
@adanascencio3924
@adanascencio3924 Жыл бұрын
This was great, thank you and thank that board of yours!
@joealahaa7261
@joealahaa7261 10 жыл бұрын
this will be my tutorial for for loops, was nicely explained and will be useful to look back on as revision. thanks
@nr1341
@nr1341 8 жыл бұрын
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
@emmanuelleallen
@emmanuelleallen 7 ай бұрын
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.
@cboyslim5490
@cboyslim5490 5 жыл бұрын
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
@EricaHigley
@EricaHigley 8 жыл бұрын
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*
@USELESSFACTSDAILYDAY
@USELESSFACTSDAILYDAY 2 жыл бұрын
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.
@2Faded12
@2Faded12 9 ай бұрын
This is the best explanation of for loops I've seen
@motivationpouretudier2460
@motivationpouretudier2460 7 жыл бұрын
Very cool tutorials, and like the way you explain, clear and fun ;) Hope I will learn python entirely ( or maximum I can )
@shadedmw
@shadedmw 8 жыл бұрын
really well explained and very useful. Thank you for this tutorial.
@ParishRoger3
@ParishRoger3 11 жыл бұрын
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!
@jmorgan7317
@jmorgan7317 7 жыл бұрын
Thank you so much, your a life saver, explained it so clearly
@MM-oq1lb
@MM-oq1lb 10 ай бұрын
This is the best best best best ever explanation ever! I wonder if this man has a Python full course?
@sangram361
@sangram361 Жыл бұрын
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
@franzbiberkopf9179
@franzbiberkopf9179 4 жыл бұрын
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.
@Ryan_online
@Ryan_online 5 жыл бұрын
thank you for educate us with your amazing skills
@raheem6446
@raheem6446 Жыл бұрын
wow best tutorial video I've seen so far! subscribed.
@diegosalinas1771
@diegosalinas1771 Жыл бұрын
Fantastic video. Thank you and god bless.
@OlaStae
@OlaStae 3 ай бұрын
Great thank you for this beneficial video😊
@anponioparques705
@anponioparques705 3 ай бұрын
So happy: one phrase you said and I could finish my homework.
@anusmitasamanta2608
@anusmitasamanta2608 5 жыл бұрын
Very nice explanation....thank you so much!
@rajendrakv8688
@rajendrakv8688 4 жыл бұрын
You explained For loop very well. Anyone can understand, especially people like me , new to coding. keep it up
@wesmoto2550
@wesmoto2550 4 жыл бұрын
wrt tech channel has some good python videos that you may like
@Whattheugi
@Whattheugi 10 жыл бұрын
For python 3 type list(range(6))
@chancewilliams666
@chancewilliams666 10 жыл бұрын
print(list(range(100)))
@MajedDalain
@MajedDalain 7 жыл бұрын
it works (Y)
@profipix
@profipix 8 жыл бұрын
Good explanation, man! Helped me out a ton
@iamnidal
@iamnidal 7 жыл бұрын
many people who teach this don't talk about what the "i" means, i love you for explaining it .. XD
@hungnoobxd2481
@hungnoobxd2481 5 ай бұрын
wow i am so lucky that i found you! Cant even do this without u
@williamjayaraj2244
@williamjayaraj2244 2 жыл бұрын
Thank you for the good explanation of ' for ' loop.
@beachboybali7925
@beachboybali7925 9 жыл бұрын
thats really helps me and good explanation .thanks
@Ezekiel_unabor
@Ezekiel_unabor 9 ай бұрын
Thank u. Ur a great teacher
@user-gh7ri6jt9g
@user-gh7ri6jt9g 11 ай бұрын
good one... thanks for posting this
@oriakporovieemmanuel8841
@oriakporovieemmanuel8841 Жыл бұрын
This is helpful. Thanks a million
@ibekwevictor1158
@ibekwevictor1158 2 жыл бұрын
Thanks for this tutorial. I Really appreciate
@adambloodworth7042
@adambloodworth7042 9 жыл бұрын
yo this shit is helpful af
@Cyroavernus
@Cyroavernus 11 жыл бұрын
Me too.....wonderful stuff here Sal!!!!Thanks a ton for all the work that you've done to make education free and open!!!
@hayleygibbs647
@hayleygibbs647 5 жыл бұрын
Thank you it helped me :) this is what I learned in JavaScript lol
@JoJo-cw8os
@JoJo-cw8os 8 жыл бұрын
wow love this! i totally understand. finally.
@grapefives7762
@grapefives7762 6 жыл бұрын
same lol and i just did a list of square numbers from 1-16!
@mohdshadman5365
@mohdshadman5365 Жыл бұрын
Masha ALLAH you guys the best!
@normanmwanza8225
@normanmwanza8225 7 ай бұрын
may GOD bless you sir you are a teacher indeed
@sofitocyn100
@sofitocyn100 3 жыл бұрын
very well explained. I'm thankful!
@Arabic_guy2024
@Arabic_guy2024 4 жыл бұрын
Thanks for such a clear explanation
@shaanses4510
@shaanses4510 8 ай бұрын
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
@shehansithija7397
@shehansithija7397 5 жыл бұрын
superb.. it's very useful
@albinarafis5289
@albinarafis5289 10 жыл бұрын
wow great tutorial It really explains how that anyone can undersatnd Thank you
@jereziah
@jereziah 7 жыл бұрын
how come these aren't available in the iOS/Droid apps?! I wanna take them mobile >
@laylabrown8588
@laylabrown8588 Жыл бұрын
Thanks for the help!
@tonnymuthiora6600
@tonnymuthiora6600 Ай бұрын
in all honesty, this guy is a big upgrade to "ndume iko busy"
@Vinicius-kg2ml
@Vinicius-kg2ml 2 жыл бұрын
Great job man.
@Jacksonworthless
@Jacksonworthless 9 жыл бұрын
Such amaze.
@NeverMyRealName
@NeverMyRealName 13 жыл бұрын
you shoujld do tutorials in C i learned programming this way and it helped me out a lot
@Alex021473
@Alex021473 9 жыл бұрын
great video. thank you!
@mhassan6165
@mhassan6165 5 жыл бұрын
its amazing bro. thanks.
@BlackBirdNL
@BlackBirdNL 5 жыл бұрын
This was very useful, thanks
@enzospaws5596
@enzospaws5596 6 жыл бұрын
Hey Khan, thanks for explaining the things. I have a query what if I use range(-5,5) and then print(i) inside the loop. I am unable to understand in for loop what is the function of "in", if its verifying to the elements so ouput should be 0,1,2,3,4... or -5,-4,-3,...,3,4. May you please clarify with a video
@frederickred
@frederickred 5 жыл бұрын
Thanks this helps a lot.
@cheryllewman
@cheryllewman 8 жыл бұрын
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!!!
@kylerollins6483
@kylerollins6483 8 жыл бұрын
+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
@jeffhardyextremematt
@jeffhardyextremematt 8 жыл бұрын
list(range(1,4,1)) will be proper syntax in python 3
@gem2140
@gem2140 3 жыл бұрын
This still works! Thanks lol! -2020
@StevenMarieChoseTheGoodLife
@StevenMarieChoseTheGoodLife Жыл бұрын
finally I understand it thank you, you'll be credited on my cv.
@MrTSUUA
@MrTSUUA 10 жыл бұрын
I feel like this guy could do a killer Samuel Jackson impression if he gave it a try
@joshambush8574
@joshambush8574 6 жыл бұрын
MrTSUUA 😢😂🤣
@johnwilliams983
@johnwilliams983 4 жыл бұрын
🤣
@nidaleeforlife1693
@nidaleeforlife1693 9 жыл бұрын
thank you, better than codeacademy explenations that's for sure.
@sadrammdy1712
@sadrammdy1712 5 ай бұрын
that was very usefull thanks
@AbidKhan-bt8pk
@AbidKhan-bt8pk 7 жыл бұрын
Excellent explaination
@krishnakanthes
@krishnakanthes 7 жыл бұрын
beyond excellent
@Belalrazaa
@Belalrazaa Жыл бұрын
sir make more videos of programming u r great❤
@8jallin97
@8jallin97 10 жыл бұрын
this is the ELI5 for LOOPS. great!
@JPistol
@JPistol 2 жыл бұрын
great video
@keegancizikas2376
@keegancizikas2376 9 жыл бұрын
what would we do if we wanted the totalsum of all the sums displayed? like the first sum+second sum...and so on?
@allhailcaesar
@allhailcaesar 9 жыл бұрын
numbers = [1,2,3,4,5] sum = 0 for number in numbers: sum +=(int)numbers print (sum) #will print the total of the numbers in the list, if you want total after each number #in the list, keep the print(sum) in the loop
@MrZozo011110
@MrZozo011110 8 жыл бұрын
thank you very helpful
@nakamuramizu..584
@nakamuramizu..584 4 ай бұрын
I have a test tomorrow and I don't know anything so thank you!
@fendas123
@fendas123 7 жыл бұрын
Thank you so much.
While Loops in Python
5:19
Khan Academy
Рет қаралды 492 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 254 М.
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 50 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 114 М.
R vs Python
7:07
IBM Technology
Рет қаралды 314 М.
The Fastest Way to Loop in Python - An Unfortunate Truth
8:06
mCoding
Рет қаралды 1,4 МЛН
5 Really Cool Python Functions
19:58
Indently
Рет қаралды 58 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 289 М.
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 904 М.
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 435 М.
For Loop in Python | Python Tutorials for Beginners #lec42
19:42
Jenny's Lectures CS IT
Рет қаралды 144 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН