Skip to main content

Course

Python

PythonPart 3 of 7 · Chapter 2 of 4

Doing Something More Than Once

Looping in Python means iterating over the thing itself, not counting up to its length and hoping you stop in time. Step through a collection one item at a time and watch the loop variable outlive the loop that created it.


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.