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