Python - File Handling Fundamentals
What will be the output of the following code if
test.txt initially contains "Python"?with open("test.txt", "a") as f:
f.write(" Rocks")
with open("test.txt", "r") as f:
print(f.read())