Python - File Handling Fundamentals
Identify the error in this code snippet:
f = open('file.txt', 'r')
print(f.read())
print(f.read())
f.close()f = open('file.txt', 'r')
print(f.read())
print(f.read())
f.close()15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions