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)
file.write('Appended line.')
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) Correct Answer file object
মোঃ আরিফুল ইসলাম
Feb 20, 2025