Тёмный

For Loops in Python 

Khan Academy
Подписаться 9 млн
Просмотров 798 тыс.
50% 1

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 349   
@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 3 года назад
khan the messiah
@tusharmaharana3373
@tusharmaharana3373 3 года назад
@@siddoesstuffonyt2074 we can make a religion out of this
@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 💪
@Pink_muffn
@Pink_muffn 5 месяцев назад
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!
@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
@SirHarshPatel
@SirHarshPatel 11 месяцев назад
sup bro
@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 9 месяцев назад
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 9 месяцев назад
​@@Hype_Machineyeah i have the same question hahaha
@TheRetiredBatman
@TheRetiredBatman 9 месяцев назад
What are you doing now?
@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.
@MAZaini93
@MAZaini93 6 месяцев назад
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!
@shekharkumar1902
@shekharkumar1902 4 года назад
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!
@musamohannad1598
@musamohannad1598 6 лет назад
What does this guy not know 😣😣😣
@edwarddorelien1969
@edwarddorelien1969 6 лет назад
facts
@Grumpy_Wolf
@Grumpy_Wolf 5 лет назад
how to properly teach.
@jw7196
@jw7196 5 лет назад
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.
@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.
@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!
@simonasopagaite
@simonasopagaite 10 лет назад
Very clear explanation, thank you so much!
@Whattheugi
@Whattheugi 10 лет назад
For python 3 type list(range(6))
@chancewilliams666
@chancewilliams666 10 лет назад
print(list(range(100)))
@MajedDalain
@MajedDalain 7 лет назад
it works (Y)
@manhaabdellah2682
@manhaabdellah2682 Год назад
Great job! He literally knows all the subjects its so amazing
@adanascencio3924
@adanascencio3924 Год назад
This was great, thank you and thank that board of yours!
@Ricky-zc8qm
@Ricky-zc8qm 7 лет назад
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))
@parce11726
@parce11726 3 года назад
Thank you, you just made my day I couldn't find anywhere how to use the range concept in python 3
@samsepiol5533
@samsepiol5533 4 месяца назад
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!
@ruffraff3176
@ruffraff3176 10 месяцев назад
Thanks very much for breaking this down. Doing a course online and could grasp what exactly happens with for loops. Much clearer now. Cheers
@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!!
@Ezekiel_unabor
@Ezekiel_unabor 10 месяцев назад
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 ❤
@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.
@2Faded12
@2Faded12 10 месяцев назад
This is the best explanation of for loops I've seen
@razzon101
@razzon101 Год назад
3:02 I've been stuck on this for 2 days! Thank you for explaining so clearly
@OlaStae
@OlaStae 5 месяцев назад
Great thank you for this beneficial video😊
@Jon-zf3dq
@Jon-zf3dq 6 лет назад
What don't you know? It's remarkable how much you've helped me in college.
@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
@raheem6446
@raheem6446 Год назад
wow best tutorial video I've seen so far! subscribed.
@TheGuyBehindY0u
@TheGuyBehindY0u 11 лет назад
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 :)
@anponioparques705
@anponioparques705 5 месяцев назад
So happy: one phrase you said and I could finish my homework.
@wannacry7348
@wannacry7348 4 года назад
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
@anusmitasamanta2608
@anusmitasamanta2608 5 лет назад
Very nice explanation....thank you so much!
@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
@myenjoyablehobbies
@myenjoyablehobbies 6 лет назад
That was a very, very well put together tutorial, you did on this. Thank you!
@jessewhite9638
@jessewhite9638 4 года назад
this is the best for loop explanation ive seen so far
@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
@adambloodworth7042
@adambloodworth7042 9 лет назад
yo this shit is helpful af
@OliverGomes
@OliverGomes 7 лет назад
I didn't know KA does python tutorials until now !!! WOW ! this is very helpful
@normanmwanza8225
@normanmwanza8225 8 месяцев назад
may GOD bless you sir you are a teacher indeed
@emmanuelleallen
@emmanuelleallen 8 месяцев назад
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.
@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.
@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*
@vikasbawa4677
@vikasbawa4677 5 лет назад
Thank you for explaining it in detail. Much appreciated.
@lengher2617
@lengher2617 9 лет назад
I just want to say these video actually help me understand what's going on with programming.
@iamnidal
@iamnidal 7 лет назад
many people who teach this don't talk about what the "i" means, i love you for explaining it .. XD
@KojoHandel
@KojoHandel 15 дней назад
oh my God this video has been so so helpful sir. subscribing to this channel right away!
@khanacademy
@khanacademy 15 дней назад
Wonderful! You might be interested in our new, updated Python content, too: ru-vid.com/group/PLSQl0a2vh4HDkbhG0sDW0b-VZXykEIAe5
@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
@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!
@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
@VictorTrintea
@VictorTrintea 8 лет назад
Thank you for making the things so easy to understand!
@mohdshadman5365
@mohdshadman5365 2 года назад
Masha ALLAH you guys the best!
@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!
@tonnymuthiora6600
@tonnymuthiora6600 2 месяца назад
in all honesty, this guy is a big upgrade to "ndume iko busy"
@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 года назад
🤣
@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
@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!
@hungnoobxd2481
@hungnoobxd2481 6 месяцев назад
wow i am so lucky that i found you! Cant even do this without u
@StevenMarieChoseTheGoodLife
finally I understand it thank you, you'll be credited on my cv.
@MM-oq1lb
@MM-oq1lb Год назад
This is the best best best best ever explanation ever! I wonder if this man has a Python full course?
@khanacademy
@khanacademy 12 дней назад
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
@shaanses4510
@shaanses4510 9 месяцев назад
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
@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
@jereziah
@jereziah 7 лет назад
how come these aren't available in the iOS/Droid apps?! I wanna take them mobile >
@shadedmw
@shadedmw 9 лет назад
really well explained and very useful. Thank you for this tutorial.
@Phaqui
@Phaqui 13 лет назад
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
@williamjayaraj2244
@williamjayaraj2244 2 года назад
Thank you for the good explanation of ' for ' loop.
@diegosalinas1771
@diegosalinas1771 Год назад
Fantastic video. Thank you and god bless.
@gem2140
@gem2140 3 года назад
This still works! Thanks lol! -2020
@antames
@antames 13 лет назад
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.
@nakamuramizu..584
@nakamuramizu..584 6 месяцев назад
I have a test tomorrow and I don't know anything so thank you!
@shehansithija7397
@shehansithija7397 5 лет назад
superb.. it's very useful
@JoeyCha
@JoeyCha 11 лет назад
Python helps in a lot of complicated things like the patterns he uses to make an example,
@nidaleeforlife1693
@nidaleeforlife1693 9 лет назад
thank you, better than codeacademy explenations that's for sure.
@Ezekiel_unabor
@Ezekiel_unabor 10 месяцев назад
Thank u. Ur a great teacher
@fsaforosaforo6338
@fsaforosaforo6338 4 года назад
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?
@bilalwarsi33
@bilalwarsi33 4 года назад
you can, as long as you use the "if" function. It's pretty simple!
@renukasachdeva
@renukasachdeva Год назад
good one... thanks for posting this
@KhalilEllams
@KhalilEllams 3 года назад
would love a new set of videos @KhanAcademey
@Ryan_online
@Ryan_online 5 лет назад
thank you for educate us with your amazing skills
@oriakporovieemmanuel8841
@oriakporovieemmanuel8841 Год назад
This is helpful. Thanks a million
@Belalrazaa
@Belalrazaa Год назад
sir make more videos of programming u r great❤
@ibekwevictor1158
@ibekwevictor1158 2 года назад
Thanks for this tutorial. I Really appreciate
@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 )
@NeverMyRealName
@NeverMyRealName 13 лет назад
you shoujld do tutorials in C i learned programming this way and it helped me out a lot
@jmorgan7317
@jmorgan7317 7 лет назад
Thank you so much, your a life saver, explained it so clearly
@everwhat54
@everwhat54 11 лет назад
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
@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!!!
@albinarafis5289
@albinarafis5289 10 лет назад
wow great tutorial It really explains how that anyone can undersatnd Thank you
@LalaiSison
@LalaiSison 6 лет назад
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?
@beachboybali7925
@beachboybali7925 9 лет назад
thats really helps me and good explanation .thanks
@hayleygibbs647
@hayleygibbs647 5 лет назад
Thank you it helped me :) this is what I learned in JavaScript lol
@Arabic_guy2024
@Arabic_guy2024 4 года назад
Thanks for such a clear explanation
@TheKattttt
@TheKattttt 11 лет назад
You need to type in "for i in range(5):" with the ":" at the end of that. See if that helps?
@profipix
@profipix 9 лет назад
Good explanation, man! Helped me out a ton
@sadrammdy1712
@sadrammdy1712 6 месяцев назад
that was very usefull thanks
@sofitocyn100
@sofitocyn100 4 года назад
very well explained. I'm thankful!
@JackEacher
@JackEacher 2 года назад
does this mean that for loops always involve some kind of range?
@ocean_princess
@ocean_princess 2 года назад
Yes!
@Vinicius-kg2ml
@Vinicius-kg2ml 2 года назад
Great job man.
@PhilBailey
@PhilBailey 6 лет назад
Video is dated, some of these don't seem to work as well in PY 3.6. Thanks for the info. You explain well.
@swallowedinthesea11
@swallowedinthesea11 6 лет назад
Use the print() in Python 3; print(sum)
@JPistol
@JPistol 2 года назад
great video
Далее
While Loops in Python
5:19
Просмотров 494 тыс.
Python for Beginners - Learn Python in 1 Hour
1:00:06
Просмотров 18 млн
Holding Bigger And Bigger Dogs
00:18
Просмотров 26 млн
Как мы играем в игры 😂
00:20
Просмотров 545 тыс.
Solve any Star Pattern program in Python
18:44
Просмотров 952 тыс.
Please Master These 10 Python Functions…
22:17
Просмотров 157 тыс.
Python dictionaries are easy 📙
8:06
Просмотров 227 тыс.
Python Programming Series (Loops 4): Nested loops
14:45
5 Useful F-String Tricks In Python
10:02
Просмотров 306 тыс.
Holding Bigger And Bigger Dogs
00:18
Просмотров 26 млн