Python For Loops - Programming for Beginners

preview_player
Показать описание
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 :

Naming Python Variables:

Coding Software:

⭐ 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:

Big thank you to freepik for the loop vector on the thumbnail:
Рекомендации по теме
Комментарии
Автор

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.

TedMaciag
Автор

I’ve watched 8 different teachers explain for loops and yours was the clearest. I finally understand it. Thank you.

anfobi
Автор

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.

henrywang
Автор

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!

barnabykent
Автор

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!

ktravers
Автор

Please don't stop making videos like this for beginners. This helped me so much!

joeRob
Автор

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!!

DucatiSydney
Автор

Appreciate how enthusiastically and calmly you explain this!

louisestruwe
Автор

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!

Flowckinfour
Автор

Due to your fabulous explanation, I have get rid of my fear for applying a for loop in python.
Fantastic, and your are a true, born teacher ever. ❤👍👍

smrazaabidi
Автор

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.

mmeink
Автор

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 😭

lovvelyz
Автор

I spent 20 minutes in my online class rereading for loops feeling stupid, and the moment it was bootylicious I got it. Thank you

tiffanymeagher
Автор

Honestly one of the best videos from around 10 that I searched to introduce someone to this topic, thank you.

alexisaddicted
Автор

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.

cbd_miso
Автор

These quick lessons are awesome! Keep it up and thanks for all the hard work!

Tom-efmz
Автор

This was what I needed: Python easily explained with music. Thank you so much.

imamrodz
Автор

never has the explanation of an iteration been so beautiful!

gabrielfernandez
Автор

Thank you for explaining this in such a clear way. I have problem comprehending abstract instructions and this helped me a lot

dd.
Автор

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.

Akarsh-