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