Q8
What is the output of the following code:with open('data.txt', 'a') as file: file.write('Appended line.')with open('data.txt', 'r') as file: content = file.read()print(content)
A.
Contents of data.txt with the appended line
B.
An error will occur
C.
Appended line.
D.
file object
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board