Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythoncontextmanagerSingle-choice MCQ

Does `contextlib.suppress(LookupError)` swallow the exception raised here?

from contextlib import suppress with suppress(LookupError): {}['x'] print("reached")