Python · Lesson 5.4 · Pro
while loops
Repeat while a condition holds, when you don't know in advance how many times.
In this lesson
- Repeat until something changes
- How many steps until...
- Walk through items with a while
- Digits of a number
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.