Statement
easy
Fix division by zero
In `starter.py` `error_rate` crashes on an empty list: division by zero.
Fix it so that empty input returns `0.0` and the normal calculation stays
unchanged.
Python
AI mentor
The AI mentor is available after you log in: it sees your attempt history and does not spend resources on anonymous requests.
Log in and ask
Hints
1 of 3 unlocked · attempts: 0
Hint 1
What happens to the denominator when there are no valid lines? Where should that
be handled?
Hint 2 — unlocks after 1 attempt
Hint 3 — unlocks after 3 attempts