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 :
https://youtu.be/xUhPxj8if0U
Naming Python Variables:
https://youtu.be/3YUfWCjCcko
Coding Software:
https://youtu.be/jp_3NOKHn9c
⭐ 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:
https://www.flaticon.com/
Big thank you to freepik for the loop vector on the thumbnail:
https://www.freepik.com/free-vector/circular-swirls-set_9649224.htm