Practice problems
Choose a topic, work through an example, and reveal a hint or worked answer when you’re ready.
Showing 21–24 of 24 problems
PyAdvancedPyAdvancedPyAdvancedPyAdvanced
Decorators and function wrapping
What value reaches its caller?
Context managers and resource cleanup
Does leaving the block still close the file?
Async tasks and cancellation
Can the timer waits overlap?
Profiling and memory use
Which area is the strongest first candidate for optimization?