Code AnalysisIntermediate 45s
with statement
What is the output?
Starter code
class CM:
def __enter__(self): print('enter'); return self
def __exit__(self,*a): print('exit')
with CM():
print('body')Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.