Skip to content

Glossary: Python Basics

Loop

Also written: loops

Code that repeats. A `for` loop runs once per item, and a `while` loop runs while a condition is true.

Where the book teaches it

Related terms

for loopwhile loopbreakcontinue