Python For Loops - Programming for Beginners

  Рет қаралды 133,276

Python Simplified

Python Simplified

Күн бұрын

A For loop statement is a basic control flow tool in Python.
In this tutorial I will show you how and why we use them in our code (hint: saves lots of time! ⌚)
We will look at a few code examples of different use cases, and we will also utilize our new knowledge of For loops by recreating lyrics of famous songs! 🎵🎵🎵
Please note, I'll be uploading new Python Basics videos by order of importance rather than a learning sequence.
I'll be organizing the videos in a special playlist and will fill in the blanks as we go 😉
If you want to see my first few Python Basics lessons (I've filmed them a very long time ago so you may notice some differences 😅)
Python Variables and Data Types :
• Python Variables and D...
Naming Python Variables:
• The Rules of Naming Va...
Coding Software:
• Coding Interfaces for ...
⭐ TIMESTAMPS ⭐
*******************************
00:00 - What is a For loop?
00:14 - Why use For loops?
00:42 - For Loop Syntax
02:11 - Iteration Example
03:16 - Repetition and Range
03:55 - Repetition Example
04:42 - Thanks for watching!
*******************************
In the iteration code example, I cited:
Bootylicious, Destiny's Child, Survivor, Columbia, 2001
In the repetition code example, I cited:
Smells Like Teen Spirit, Nirvana, Nevermind, DGC, 1991
A huge thank you to flat icon for the lovely icons in the slides:
www.flaticon.com/
Big thank you to freepik for the loop vector on the thumbnail:
www.freepik.com/free-vector/c...

Пікірлер: 479
@TedMaciag
@TedMaciag 3 жыл бұрын
Great videos! However, range no longer outputs a list. It generates a sequence which will vanish after being used. Far better than creating a list and sucking up memory with a large list. Say you need a million iterations, a very big list, not for a generator. Best of luck, keep up the good work.
@PythonSimplified
@PythonSimplified 3 жыл бұрын
Thank you so much Ted! 😀 You're a 100% correct! range is definitely not a traditional list, but it's super easy to convert into one with: my_list = [*range(10)] I'll definitely go over your point in the dedicated Range video (hopefully I'll get to it soon). I described it as a list here because it was easier to imagine it as a list, but you're right - I should have described it as a "list-like" object instead 😉 Thanks again for the great feedback! I really appreciate it! 😊
@anfobi
@anfobi 7 ай бұрын
I’ve watched 8 different teachers explain for loops and yours was the clearest. I finally understand it. Thank you.
@PythonSimplified
@PythonSimplified 7 ай бұрын
Yey!! Super happy to help!! 😁😁😁
@martycollins788
@martycollins788 3 ай бұрын
Same!
@nothingmuch44
@nothingmuch44 28 күн бұрын
1000% you literally took words out my mouth. I subscribed immediately
@henrywang5688
@henrywang5688 3 жыл бұрын
This video is amazing, I am a student at graduate Data Science student at UC Berkeley, and your video explains For Loops better than my Berkeley professors.
@PythonSimplified
@PythonSimplified 3 жыл бұрын
Yeeeey, I'm so happy to hear that! Thank you so much for the incredible feedback, Henry! 😀😀😀
@barnabykent6698
@barnabykent6698 2 жыл бұрын
The perfect video for beginners! Most "Python for beginners" videos are not for true beginners. As someone who comes from a medical background with absolutely 0 computer science/programming experience, it's been soul destroying trying to learn Python through online tutorials for beginners until I found this channel. I can't thank you enough!
@stevegrande1698
@stevegrande1698 Ай бұрын
Perfect description of the "for" loop. After watching this video I fully understand the components of the FOR loop.
@joeRob0
@joeRob0 Жыл бұрын
Please don't stop making videos like this for beginners. This helped me so much!
@tiffanymeagher7727
@tiffanymeagher7727 Жыл бұрын
I spent 20 minutes in my online class rereading for loops feeling stupid, and the moment it was bootylicious I got it. Thank you
@easydatascience2508
@easydatascience2508 Жыл бұрын
See mine too. Step b step playlist for Python fundamentals, with ppt and source coding.
@exe.m1dn1ght
@exe.m1dn1ght Жыл бұрын
i should be ashamed for not knowing difference between iteration and repetition.. it was so confusing
@louisestruwe3933
@louisestruwe3933 5 ай бұрын
Appreciate how enthusiastically and calmly you explain this!
@DucatiSydney
@DucatiSydney 11 ай бұрын
Coming back again to brush on for loops, just wanted to say you're a great teacher. I do understand a lot of effort goes into making these videos because they adapt to insane amount of visual detail whilst you explain. All i want to say is thank you for putting in the effort!!
@smrazaabidi1495
@smrazaabidi1495 6 ай бұрын
Due to your fabulous explanation, I have get rid of my fear for applying a for loop in python. Awwwweeeeeeeesssoooooooommmmmmmeeeeeeee, Fantastic, and your are a true, born teacher ever. ❤👍👍
@alexisaddicted
@alexisaddicted 6 ай бұрын
Honestly one of the best videos from around 10 that I searched to introduce someone to this topic, thank you.
@ktravers
@ktravers 3 жыл бұрын
Simply the best and most clear programming instruction video I have ever seen. That was a LOT of trouble to go through with the graphics - and it is MUCH appreciated!
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Thank you so much Kevin! 😀
@mmeink3954
@mmeink3954 2 жыл бұрын
Your explanation is quite clear and I think even six year old will understand. I really enjoy watching your videos. I got confused about class in Python for I am a beginner and your video just clear it out. I am really hoping to watch " Functions ", " While loop" etc. Please keep up your good work. Thank you so much for contributing your knowledge and understanding.
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Thank you so much for the lovely comment! 😊 An extremely smart man said once “If you can't explain it to a six year old - you don't understand it yourself" I try to go by these principles as much as possible 😉 I'll film a functions episode soon! thanks for reminding me to continue the Python for Beginners series 😃
@lovvelyz
@lovvelyz Жыл бұрын
Thank you so much for posting this!!! I spent a solid 30 minutes trying to understand for loops with other videos and this one finally clicked everything together 😭
@Flowckinfour
@Flowckinfour Жыл бұрын
Today is literally the first time in my life I even thought about learning programming, I've watch several different videos relating to the same subject, but I seemed to resonate more with your explanations of things. I hope to fully grasp the meaning behind everything I'm trying to understand. I will definitely be watching everything you have out. Thank you for your help, don't have a good day, have a great day!
@JadamZupeWidelcem
@JadamZupeWidelcem 5 ай бұрын
Girl! finally someone explained it transparently. You are doing a great job.
@Tom-ef1mz
@Tom-ef1mz 3 жыл бұрын
These quick lessons are awesome! Keep it up and thanks for all the hard work!
@pogbaphonzy4027
@pogbaphonzy4027 Жыл бұрын
Straight to the point. BEAUTIFUL!
@gabrielfernandez9660
@gabrielfernandez9660 2 жыл бұрын
never has the explanation of an iteration been so beautiful!
@imamrodz413
@imamrodz413 Ай бұрын
This was what I needed: Python easily explained with music. Thank you so much.
@cbd_miso
@cbd_miso Жыл бұрын
Thank you so much for this video! So simple but I learned so much. I was struggling with for loops and the range function for a while and these 5 minutes cleared everything up.
@dd.5844
@dd.5844 Жыл бұрын
Thank you for explaining this in such a clear way. I have problem comprehending abstract instructions and this helped me a lot
@vaniad555
@vaniad555 9 ай бұрын
Love how well you explain the subjects, totally will subscribe! Keep up the good work!
@issamil
@issamil Жыл бұрын
I needed a very simple breakdown. Thank you!
@lighthousedimlights6404
@lighthousedimlights6404 4 ай бұрын
I love you so much I didn’t get anyone else’s explaining it and I finally understood it when you explained it to me
@oddsmith5872
@oddsmith5872 Жыл бұрын
Teaching myself programming now, started with Python. Been youtubing many for loop videos, this is the best.
@sendbnes
@sendbnes 3 жыл бұрын
Thanky you, i really like how you deliver the tutorial, easily understood very clear. more videos please about python
@englishfy1332
@englishfy1332 Жыл бұрын
You are amazing. That's what I have been looking for: meaningful examples . Congratulations
@rotes3106
@rotes3106 Жыл бұрын
I like when u say their names and explain the meaning of each words, letters, functions and everything on the code. It gives sense how Python works.
@MrRobot222
@MrRobot222 3 жыл бұрын
Enjoying both the advanced videos to inspire me and also the basics to help me learn. Thanks!
@PythonSimplified
@PythonSimplified 3 жыл бұрын
Thank you so much for the lovely feedback Alex! 😁😁😁
@ilgizdavidov3888
@ilgizdavidov3888 Жыл бұрын
This is amazing!!! The best explanation I have ever seen, especially from such a beauty!!!
@JamesSolomon1
@JamesSolomon1 Жыл бұрын
Thank you no one in the KZfaq or anyother platform Explains like you!
@PeterKrusz91
@PeterKrusz91 2 жыл бұрын
Awesome videos - thank you for summarizing what takes every other course or video 10 minutes into a much shorter timeframe. You rock!
@mileskenyon
@mileskenyon 2 жыл бұрын
Your explaination is amazing, you're a great teacher!
@cathychoi6959
@cathychoi6959 8 ай бұрын
Thanks Mariya for your easy to follow contents! saved under my schedule !
@drewblanchard7382
@drewblanchard7382 4 ай бұрын
Thank you for the great explanation. I've been learning on my own and had not found any explanation of using i with the for loop and range function. Great content!
@MrTinoval
@MrTinoval 2 жыл бұрын
you did really good with explaining all the terms and not assuming people should know. well done
@Akarsh-
@Akarsh- 2 жыл бұрын
Excellent way of explaining. I really love how you broke down the commands. Exactly what I was looking for. Highly recommended to use such in depth explanations and breakdowns along with some examples in your future tutorial videos.
@clintwestwood4545
@clintwestwood4545 2 жыл бұрын
Most intuitive tutorial I've found! Thank you.
@dbuc4671
@dbuc4671 Жыл бұрын
u really deserve at least half a million subscribers, well taught, upbeat teaching style.
@samueldesouzamalaquias
@samueldesouzamalaquias 11 ай бұрын
You make things look so easy. Thank you.
@mathewmcfool
@mathewmcfool 4 ай бұрын
lifesaver! thank you. takes a smart person make it look that easy, respect!
@rickybrenay6249
@rickybrenay6249 2 жыл бұрын
3 days trying to get my scanner app to work with no luck. watch your video and bam! got it going!! thank you for making clear and easy videos!!!
@warriorlife5101
@warriorlife5101 2 жыл бұрын
thank you sis i was struggling with this topic,,,thanks alot for clarifying in simple and easy way-...may god bless u with all the success in life
@syedayaanalizaidi7439
@syedayaanalizaidi7439 2 ай бұрын
This was by far the easiest explanation of For loops, Thanks for this video!!
@essammohamed3526
@essammohamed3526 2 жыл бұрын
Best for loop explanation found on the internet, great job! :)
@RobinBoyBlunder
@RobinBoyBlunder Жыл бұрын
There were would be a lot more programmers if coding was explained in this way. It’s concise, to the point, and has great examples. I really suck at programming and trying to learn and these videos have been incredibly helpful in my learning journey. Thank you!!
@madezra64
@madezra64 3 жыл бұрын
Great explanation! I also love the format. PS: Your shirt is cool!
@sayidahmed297
@sayidahmed297 Жыл бұрын
Thanks for such clear and wide explanation.
@fredericksngubi
@fredericksngubi 7 ай бұрын
Wonderful and easy to comprehend! Keep it up!
@yt4eve
@yt4eve Жыл бұрын
Thank you so much, loved your simplified presentation very good for newbies 😊
@instant2599
@instant2599 2 жыл бұрын
such a useful vid for understanding for loops, thanks for the help!
@stephensmith6555
@stephensmith6555 2 ай бұрын
FINALLY!!! A teacher who explains things for beginners the ways those things SHOULD be explained! You have a new subscriber in me! I LOVE the way you teach. THANK YOU for sharing your knowledge -- and then in such a patient, meticulous way. ❤❤❤
@musathepoet
@musathepoet 11 ай бұрын
I appreciate you for explaining this so so clearly and thoroughly
@TheStoneDangler
@TheStoneDangler 2 жыл бұрын
This was very well explained and in-depth. The breakdown was easy to follow and made my assignment much easier. Thank you
@AsdAsd-nl6xg
@AsdAsd-nl6xg 3 жыл бұрын
A mix of both beginner and advanced tutorials is appreciated. Thanks for the great information you've already shared with us!
@PythonSimplified
@PythonSimplified 3 жыл бұрын
Thank you! happy to hear you like my tutorials! 😀
@anfxf6513
@anfxf6513 3 жыл бұрын
Great What I Want To Know This For Loop. Everything You Teach is Clear And Simple .
@m0ssy705
@m0ssy705 2 жыл бұрын
Was super confused when trying this after reading my textbook. Looked up your video and got it in one run. Thanks!!
@mohammadrezahajari6530
@mohammadrezahajari6530 2 жыл бұрын
Exactly what I was looking for Thanks
@sammile
@sammile Жыл бұрын
I admire your skills and the way you pass on your knowledge. Many Thanks
@unyimejacob7408
@unyimejacob7408 9 ай бұрын
God bless you, I had a hard time understanding loop but you made it so easy for me thanks.
@3dphipps
@3dphipps Жыл бұрын
Wonderful lesson. This is the best video I've watched in describing Python's For.
@ThisIsJoe11
@ThisIsJoe11 2 жыл бұрын
You made loops understandable! Thank you!!
@mohamedmehnaoui5588
@mohamedmehnaoui5588 2 жыл бұрын
You made it so easy. Thank you
@incyder
@incyder 2 жыл бұрын
Love the creative examples. Keep up the good work.
@bob7691
@bob7691 3 жыл бұрын
You are too good... Have been watching almost all the videos you been posting and have to say "уважать" for all the effort you have been putting in sharing your knowledge...
@cesst3696
@cesst3696 2 жыл бұрын
The only video which explained the for loop, very clear. Subscribed!
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Yey!! Welcome aboard Cess T!! 😃😃😃
@mahgoubmagdi1981
@mahgoubmagdi1981 11 ай бұрын
You're video is Amazing and so easy to understand and follow. Thank you so much.
@RecoveringHermit
@RecoveringHermit 2 жыл бұрын
Really clear explanations. Particularly loved the classes video as it really helped me to understand "self" :)
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Thank you so much Rachel, I'm super happy you find my videos helpful! 😃
@ezeihemadu7575
@ezeihemadu7575 2 жыл бұрын
Officially my favorite python tutor on KZfaq.
@Zessiee
@Zessiee Жыл бұрын
I agree with everyone who already commented, these examples were so good! Thank you!!!! I will now actually remember what a For Loop does and how to use it. I've subscribed.
@thomassaook7787
@thomassaook7787 Жыл бұрын
that was superb, the best way ever to describe for loop
@Inertia.
@Inertia. Жыл бұрын
after watching 10 videos, only this one actually stayed in my head hahaha. Amazing videoooo!!
@focuz24
@focuz24 Жыл бұрын
Appreciate your video, it explains the concept clearly.
@ajinilearning5165
@ajinilearning5165 2 жыл бұрын
really great. You explained by details. appreciate it & thank you.
@ledianelson7523
@ledianelson7523 2 жыл бұрын
this is really simplified....thank you
@mr.shredder5430
@mr.shredder5430 11 ай бұрын
wow you just made it simple to understand with interactive video lesson thats awesome ty for sharing this tutorial💜💜
@joshuastill2619
@joshuastill2619 Жыл бұрын
I have watched several videos trying to figure this out, thank god!
@trevoroware9000
@trevoroware9000 Жыл бұрын
thank you so so so much for this amazing content . I wish long life and prosperity and may you be victorious in all you endeavors.
@jorgesantanderm
@jorgesantanderm 2 жыл бұрын
Very awesome vid! Finally understood better a for loop with the passion of music.
@emersonespinoza932
@emersonespinoza932 3 жыл бұрын
Graças a Deus o youtube traduz a legenda, estou aprendendo muito com você e suas aulas, são ótimas.
@PythonSimplified
@PythonSimplified 3 жыл бұрын
Muito obrigado Émerson! Fico feliz em ouvir isso! 😁
@patientson
@patientson 8 ай бұрын
Ms Maria, thank you. I will share my dumbest secrets with for loops with you. I often get confused with iteration and repetition. Today, you just made a permanent hard print in my mind. I personally don't think i need a book when listening to you. You explain and describe your planned subject's objective with crystal clear motive of what it is you want persons such as my self and others who are willing to become excellent developers in a successive, distinctive approach. Please you cant stop now.
@Gamerstrategist837
@Gamerstrategist837 Жыл бұрын
I just subscribed I love how detailed you are. Never knew what the i was for thank you.
@johnalabi7819
@johnalabi7819 Жыл бұрын
Wow, the explanation was quite easy to follow. You did well!
@manutdarabi5385
@manutdarabi5385 Жыл бұрын
Wow amazing clear explanation!!
@faisalimtiyaz2313
@faisalimtiyaz2313 3 жыл бұрын
I love to watching your videos! You explain very well ❤️
@mesutkiziltoprak9809
@mesutkiziltoprak9809 Жыл бұрын
Great explanation, thanks!
@phon_o_rama2169
@phon_o_rama2169 3 жыл бұрын
Great video!! Can you talk about something i always get confused about. Passing variables by value and reference. I hope you can continue with this basic programming tutorials! Thank you
@LearnSomethingHelpful
@LearnSomethingHelpful Жыл бұрын
Very simple to understand, where has this video been thus far on my journey? Thank you for the clear view of a For Loop
@SuperCantillano
@SuperCantillano 3 жыл бұрын
I am a begginer and love the way your examples. Ty
@garethedwards1900
@garethedwards1900 Жыл бұрын
I never quite understood the difference between iteration and repetition while learning. However this video made it very clear, while also remaining concise. 10/10
@Ismail-bx4it
@Ismail-bx4it 3 жыл бұрын
man i really do love this channel
@mitchmoshe3423
@mitchmoshe3423 2 жыл бұрын
Just when I thought I was going to give up on coding, I came across your super helpful videos. Thank you for all the effort you put into them… they really help a beginner like me 👍🏽
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Yeeeeyyy! I'm glad you didn't give up! 💪💪💪 Thank you so much for the lovely comment, Mitch! 😀
@user-vo6eg8ms3p
@user-vo6eg8ms3p 4 ай бұрын
Thanks, this video really helped me to understand python loops
@miniann213dd
@miniann213dd 3 жыл бұрын
I like your examples, they are so easy to understand.
@destinmalekamununga5922
@destinmalekamununga5922 4 ай бұрын
Amazing, amazing. Thanks a lot. Very helpful.!😊
@hobo_1616
@hobo_1616 3 жыл бұрын
Thanks for the very good and detailed video! Please continue with the Beginners series
@PythonSimplified
@PythonSimplified 3 жыл бұрын
Thank you so much, I sure will! 😀 Next video in this series is about the "While" loop - so stay tuned! 😉
@dannyradjkoemar580
@dannyradjkoemar580 3 жыл бұрын
Perfectly explained, I get it now. Hope you will someday a video about the while function. Well done. Gr Danny from the Netherlands
@PythonSimplified
@PythonSimplified 3 жыл бұрын
Thank you Danny! 😁 Actually the next tutorial in this series is about the "While" loop, so stay tuned! 😉
@rbsorg
@rbsorg 11 ай бұрын
Awesome way to explain the concept in a fun way. Those songs were going though my head. I guess it's ok to be loopy so long as we stop iterating at some point.
@BattlePrime296
@BattlePrime296 5 ай бұрын
Clear and wonderful explanation He explains it to you sentence by sentence
Learn Python Functions - Quick Python Project For Beginners
10:04
Python Simplified
Рет қаралды 90 М.
Python For Loops - Python Tutorial for Absolute Beginners
14:42
Programming with Mosh
Рет қаралды 560 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 25 МЛН
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 861 М.
List Comprehension - BEST Python feature !!! Fast and Efficient
14:51
Python Simplified
Рет қаралды 187 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 383 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,5 МЛН
The Fastest Way to Loop in Python - An Unfortunate Truth
8:06
mCoding
Рет қаралды 1,4 МЛН
Python Classes and Objects - OOP for Beginners
8:01
Python Simplified
Рет қаралды 535 М.
10 Python Comprehensions You SHOULD Be Using
21:35
Tech With Tim
Рет қаралды 122 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 269 М.
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 6 МЛН
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 4,5 МЛН
Asus  VivoBook Винда за 8 часов!
1:00
Sergey Delaisy
Рет қаралды 1,1 МЛН
APPLE совершила РЕВОЛЮЦИЮ!
0:39
ÉЖИ АКСЁНОВ
Рет қаралды 4,3 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30