Python · While loops

Counters and running totals

Adding up a hundred numbers by hand is slow, and a loop with a running total does it in five lines.