Practice
Learn
← Quit
0 / 0 correct
Python
Easy
1 of 10
What does a `with` statement guarantee?
A
Variables in the block are local to it
B
The context manager's __exit__ runs when the block ends, even if an exception is raised
C
Exceptions in the block are suppressed
D
The block runs in a new thread