Kahibaro
Discord Login Register

Chapter 7: Loops

Many programs need to repeat actions. Instead of copying the same code again and again, Python gives you loops to repeat code automatically.

You can think of a loop as telling the computer:

“Do this block of code again and again, until I say stop.”

Loops help you:

In this chapter, you’ll work with two main types of loops in Python:

You’ll also see how to control loops using break and continue, and how to count with loops.

Views: 18

Comments

Please login to add a comment.

Don't have an account? Register now!