?
What is the output of the following code:
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.')
Join the Discussion
Login to post a comment or share your explanation.
Login