Python · Context Managers
What does this print? ``` class CM: def __enter__(self): return self def __exit__(self,*a): print("exit") with CM(): raise ValueError("boom") print("after") ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
