Python - File Handling Fundamentals
The following code is intended to append a new line to
notes.txt. What is the error?
with open('notes.txt', 'a') as file:
file.write('New note')
file.write('\n')