Skip to content

Glossary: Python Basics

while loop

Also written: while, while True

A loop that keeps running while its condition is true, checking before each pass. It suits cases where you only know when to stop, and it runs forever if nothing makes the condition false.

Where the book teaches it

Related terms

for loopbreak