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

Publié le: 01 avril 2023
sur la chaîne: pixegami
9,830
109

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): https://github.com/pixegami/python-fo...
🔗 Full Playlist:    • Python For Beginners (Full Course)  
🔗 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Learn Python • #6 Loops • How to Repeat Code Execution durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur pixegami 01 avril 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9,830 fois et il a aimé 109 téléspectateurs. Bon visionnage!