Learn Python • #6 Loops • How to Repeat Code Execution @pixegami
Learn Python • #6 Loops • How to Repeat Code Execution  @pixegami
Uploaded April 2023 | Updated September 2026, 24 minutes ago
Loops in Python will let you run the same code over and over again.

This is useful when working with lists, or if you have something that you want to execute for a certain number of times. In this tutorial, you'll learn why loops are such an important programming concept, and how you can use them in Python.

You'll learn how to loop through every item in a list, or loop for a fixed number of times. You'll also learn how to break early out of a loop, or how to short-circuit a loop execution to "continue" to the next iteration of a loop.

This video is part of a beginner tutorial series for anyone who wants to learn Python from scratch, and get to a point where you can start coding your own projects.

🔗 Project Code (GitHub): github.com/pixegami/python-for-beginners
🔗 Full Playlist: youtube.com/playlist?list=PLZJBfja3V3Rsbiz84Z63IXnTQZH_Rnfuo
🔗 Next Chapter: Coming Tomorrow!
👉 Follow me on Twitter: @pixegami

📚 Chapters
00:00 - Introduction to Loops in Python
00:40 - Using "for" Loops
04:00 - Using enumerate()
04:58 - Looping X Times ("for in range")
07:13 - Using "while Loops
09:00 - How to "break" a loop
10:53 - How to "continue" a loop
13:17 - List Comprehensions
15:00 - Coding Exercise: Loops
Learn Python • #6 Loops • How to Repeat Code ExecutionBuild a Custom AI RPG Game with OpenAI GPTsHow I Would Learn Python (if I had to start over) • A Roadmap for 2023Learn Python • #8 Tuples and Sets • More Ways To Store Data!Learn Python • #3 Operators • Add, Subtract and More...Build a Simple RAG Pipeline in 30 Minutes!How To Build a CRUD (TO-DO) App on AWS using FastAPI and PythonPython FastAPI Tutorial: Build a REST API in 15 MinutesUV: The Python Tool Everyone Is Switching ToAmazon Bedrock Tutorial: Generative AI on AWSDeploy RAG to Production Faster Than You ThinkHow To Build an AI Agent That Can Use Tools | Python + Claude  3.5 Sonnet
pixegami |

Learn Python • #6 Loops • How to Repeat Code Execution

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER