unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn Python

Error Handling

12 questions

Multiple choiceEasy
Why avoid bare except
Multiple choiceEasy
Raising a ValueError
OutputEasy
finally always runs
VocabularyEasy
What finally does
Multiple choiceMedium

Sign in to save your progress.

Catching a parent exception type
OutputMedium
try/else behavior
OutputMedium
with statement on exception
Multiple choiceMedium
Re-raising exceptions
VocabularyMedium
Exception vs BaseException
OutputHard
Exception chaining with raise from
Multiple choiceHard
contextlib.suppress
OutputHard
Custom exception with attributes