For Loops & While Loops in Python - Beginner Python Tutorial #5 (with Exercises) @KeithGalli
For Loops & While Loops in Python - Beginner Python Tutorial #5 (with Exercises)  @KeithGalli
Uploaded March 2018 | Updated November 2026, 3 hours ago
Fifth video in my python tutorial series. In this video we cover the two different types of loops, for & while loops. Loops allow you to repeatedly execute blocks of code. For loops work great for a set number of iterations as well as iterating through lists. While loops work well with booleans (true or false).

If you have any questions, leave a comment down below!

Feel free to watch on 1.25x or 1.5x speed.

SUBSCRIBE if you enjoyed this video!! More tutorials to be uploaded real soon.

-------------------------
PYTHON TUTORIAL SERIES:

Setup & Installation: youtu.be/RJL6Y761TNE

1. Math & Variables: youtu.be/XM0CtrJYM2A
2. Conditional Statements (if, elif, else): youtu.be/vsVGPcfxEiA
3. Functions: youtu.be/5U95tRdYySA
4. Lists & Tuples: youtu.be/_zFI6ytHHdY
5. For Loops & While Loops: youtu.be/WPF5M_Ic6Fc

Learn to Program a game (mentioned at the start of this video): youtu.be/-8n91btt5d8

-------------------------
Follow me on social media!
Instagram | instagram.com/keithgalli
Twitter | twitter.com/keithgalli

-------------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs

⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=keithgalli&utm_content=description-only

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.
For Loops & While Loops in Python - Beginner Python Tutorial #5 (with Exercises)Quickest Ways to Win at Connect 4!Math & Variables in Python - Beginner Python Tutorial #1How to Prepare for a Programming Interview! (Tips & Tricks)Ask me anything! (data science, LLMs, landing a job, and more)The Best Strategy to Win at Connect 4! (Odd Even Strategy)5 Jupyter Notebook Tips & Tricks to Improve your Data Science Workflow!Lists & Tuples in Python - Beginner Python Tutorial #4Introduction to Neural Networks in Python (what you need to know) | Tensorflow/KerasHow to Schedule & Automatically Run Python Code!Can You Solve These 3 Data Analysis Puzzles? (AnalystBuilder & Python Pandas)Solving Leetcode Coding Interview Questions in Python!
Keith Galli |

For Loops & While Loops in Python - Beginner Python Tutorial #5 (with Exercises)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER