Skip to content

Exceptions practice problems in Python

Difficulty:
Category:
Tag:

Showing 13 of 13

Status Title Difficulty
Bare except, blind except Exception, and where to catch Medium
Exception chaining: raise ... from Medium
ExceptionGroup, split() and except* Hard
Exception hierarchies as API design Medium
Failure aggregation over batches Medium
Flattening a dependency group Medium
Injection: the list form, and a SQL type your checker enforces Hard
PEP 686: UTF-8 by default, and the migration hazard Hard
Placement 3/6: exception boundary design Medium
Reading a mypy error: codes, reveal_type, assert_type Easy
Retry, backoff, and retryable vs terminal Medium
Typing the error path: Result, attempt and Never Hard
zip(strict=True) and the silent-truncation bug Easy