Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Python
In with manager as resource, where does resource come from?
from Python
beginner
1 min
In with manager as resource, where does resource come from?
The value returned by manager.__enter__()
The manager object in every case
The value returned by manager.__exit__()
Check
Ask AI about this kata
Report an error
next kata
Which boolean value returned by __exit__ suppresses an exception from the with block?
Fill in
A new version is available
Reload