Skip to content

Exceptions practice problems in Python

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 16 of 16

Title Difficulty
Build a Payment Error Hierarchy Medium
Catch Errors by Category Easy
Collect Every Failure in a Batch Medium
Decode a Config File with the Right Encoding Hard
Expand a Dependency Group into Its Requirements Medium
Find the Redundant Flags in a mypy Command Easy
Fix a Batch Runner That Catches Too Much Medium
Keep User Input Out of Commands and SQL Hard
Pair Names with Scores and Reject a Length Mismatch Easy
Placement 3/6: Turn Parse Errors into Your Own Exception Medium
Retry a Fetch with Exponential Backoff Medium
Return Errors as Values with a Result Type Hard
Split an Exception Group Without Losing Its Shape Hard
Translate Library Errors into Your Own Medium
Wrap a Low-Level Error with raise from Easy
Write a Context Manager Class Easy