Python - Context Managers
Find the error in this code snippet:
How can a context manager fix this?
f = open('data.txt', 'r')
print(f.read())
# forgot to close the fileHow can a context manager fix this?
