Scientific Computing in Python · Lecture 2 · Winter 2026

Functions, control flow, and threshold statistics

Reading guide

  1. A three-valued classification rulep. 1
  2. Arguments, returns, and local namesp. 1
  3. Indicators and accumulated countsp. 2
  4. The denominator of a proportionp. 3
  5. The first recorded qualifying timep. 4
  6. Monotonicity of threshold countsp. 4

Computation and practice