Python · Lesson 5.1 · Pro
for loops
Do something once for every item in a list, string or other collection.
In this lesson
- Loop over a list
- Do some work for each item
- Loop with a condition
- Loop over a string
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.