Q18
What is the output of the following code:file = open('data.txt', 'r')content = file.read()print(content)
A.
Contents of data.txt
B.
An error will occur
AnswerC.
file object
D.
r
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board