Python - Standard Library Usage
What will be the output of this code?
with open('sample.txt', 'w') as f:
f.write('123')
with open('sample.txt', 'a') as f:
f.write('456')
with open('sample.txt', 'r') as f:
print(f.read())