Performance and Profiling

Measure Code with timeit

① Learn

timeit runs code many times and measures how long it takes. This helps you compare approaches instead of just guessing.

② Implement — write it, run it, submit
Goal

Store a float timing result in `seconds` using `timeit.timeit(...)`.

Output
Hints
  • Stuck? Reveal a hint.
Free Tools & Calculators