Python - Context Managers
What will be the output of this code?
try:
with open('test.txt', 'w') as f:
f.write('Hello')
raise Exception('Error')
except Exception:
print('Caught error')
print(f.closed)