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)

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

Related Questions

What is the output after compile and run the following code ? int Output = 10;
boolean b = false;
if((b == true) && ((Output += 10) == 20))
{
System.out.println("We are equal " + Output);
}
else
{
System.out.println("Not equal! " + Output);
}