Python · Lesson 5.3 · Pro
Totals, counts and running bests
The accumulator pattern: start with a value before the loop and update it on every pass.
In this lesson
- A running total
- A counter
- The best so far
- Running totals
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.