Python - Context Managers
Find the problem in this code:
with open('data.txt', 'r') as f:
print(f.read())with open('data.txt', 'r') as f:
print(f.read())with block must be indented.print line is not indented, causing an IndentationError.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions