Home โบ Learning paths โบ Exceptions
๐จ Exceptions โ learning path
๐จ Improver10 problemsFree ยท no login needed
What this path teaches
Exceptions as control flow: except-clause ordering, try/except/else, finally's guarantees, and the empty-input crashes (ZeroDivisionError) that every real program must decide a policy for.
By the end: You can choose between guarding, catching, and re-raising โ and order except blocks correctly.
Your progress
0 of 10 opened
Start the path โThe problems, in order
- 1Dividing without checking for zero
- 2Average calculation crashes on empty input
- 3Average of an empty filtered list
- 4Division by zero in a list comprehension
- 5try-except-else flow
- 6Catching exceptions in the wrong order
- 7Multiple except with a shared exception
- 8Finally block runs even after return
- 9Custom exception messages
- 10Modifying a dict while looping over it
How to work a path
Do the problems in order โ each one assumes the rule taught by the one before it. Open a problem, try it in the interactive editor, and only then read the explanation. Progress is saved in this browser automatically (signed-in solves also earn XP and streaks). One path per week is a solid pace; finishing in a single sitting is allowed but not required.