WhiteBox
Problems
Core Catalog
Real interview problems not on LeetCode
Algorithms
Sharpen problem solving with handpicked DSA problems
Domain Knowledge
Quiz yourself
Library
Curated resources, tier lists, and problem sets
Guides
Real takes worth your time reading
White Room
White Room
Your AI coach, plan, and memory
White Room DSA
Adaptive problems dealt at your level
What is White Room?
Community
Leaderboard
See top WhiteBox performers
Refer & Earn
Get your friends on WhiteBox
Shop
Customize your profile
Contributors
Meet the team behind WhiteBox
Changelog
See what's new on WhiteBox
Tools
Interview Intel
Questions pulled from real interviews
Resume Reviewer
See your resume the way a recruiter does
Job Boards
Land your dream job
Sandbox IDE
Solve Codeforces, AtCoder, and CSES in-browser
Search
Ctrl K
Login
Sign up
Log in
Practice
Core Catalog
Algorithms
Domain Knowledge
Library
Guides
White Room
White Room
White Room DSA
Community
Leaderboard
Refer & Earn
Shop
Contributors
Changelog
Tools
Interview Intel
Resume Reviewer
Job Boards
Sandbox IDE
Back
All Modules
Python Semantics
Exceptions & Context Managers
Exceptions & Context Managers
Cleanup you can trust.
0 / 8 solved
0/8
solved
Status
All questions
8
Unsolved
8
Solved
0
Tags
call-stack
1
cause
1
cleanup-guarantee
1
context-manager
2
contextlib
1
control-flow
2
custom-exceptions
1
dunder-exit
1
else-clause
1
exception-chaining
2
exception-propagation
1
exception-suppression
2
finally
4
generator
1
implicit-context
1
raise-from
1
return-override
2
traceback
1
try-except
1
Difficulty
1
10
Clear
Question
Tags
Difficulty
Success
1.
Else and Finally Timing
try-except
else-clause
+2
Medium
—
2.
Explicit Cause Chaining
exception-chaining
raise-from
+1
Medium
—
3.
Finally Return Overrides Try
finally
return-override
+1
Medium
—
4.
Cleanup Guarantee in contextmanager
context-manager
contextlib
+2
Medium
—
5.
Propagation Past a Mismatched Except
exception-propagation
custom-exceptions
+2
Hard
—
6.
Exit Suppressing an Exception
context-manager
dunder-exit
+1
Hard
—
7.
Finally Return Swallows an Exception
finally
exception-suppression
+1
Hard
—
8.
Implicit Exception Context
exception-chaining
implicit-context
+1
Hard
—
try-except
else-clause
finally
control-flow
exception-chaining
raise-from
cause
return-override
context-manager
contextlib
generator
cleanup-guarantee
exception-propagation
custom-exceptions
call-stack
dunder-exit
exception-suppression
implicit-context
traceback
+1
+2
+3
+4
Up next
8 of 8 questions here are still unsolved.
Next module
Class & Instance State
Problems
Roadmap
White Room
Guides
Log in