What is the output of the following code:
file = open('data.txt', 'r')
content = file.read()
print(content)
content = file.read()
print(content)
A. Contents of data.txt
B. An error will occur
C. file object
D. r
Answer: Option B

Join The Discussion