Data Iteration · Part 1
for + range for science: Fibonacci, compound interest, Celsius tables, Collatz.
Lesson 13 · Data Iteration · Part 1 — Level II · Guide
August 20, 2026 · Bridge Academy Python Program
Learning goals
- Use for with range() to drive numerical tables (Celsius/Fahrenheit, year-by-year growth). - Apply the accumulator pattern for sums, products, and running quantities. - Count down and skip-count with range(start, stop, step). - Use the loop index inside f-strings with format specifiers (:.2f, :.0%). - Write short algorithmic loops: factorial, Fibonacci, sum of squares, Collatz step.
This lesson covers PCEP-30-02 objective 2.2.
Preview truncated — download the notebook to see the full lesson.