Python - File Handling Fundamentals
What is wrong with this code?
with open('data.txt', 'r') as file:
data = file.read
print(data)with open('data.txt', 'r') as file:
data = file.read
print(data)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions