Python - Context Managers
What will be the output of this code?
class Resource:
def __enter__(self):
print('Enter')
return 'resource'
def __exit__(self, exc_type, exc_val, exc_tb):
print('Exit')
with Resource() as r:
print('Using', r)