1 / 12
INTRO

Counting Without a List of Anything

Sometimes you don't want to repeat an action once per item — you just want to repeat it a set number of times, like flipping a light switch five times. Python has a tool that hands out numbers to count with, one at a time.