Look at what you've been writing:
f = open("notes.txt", "w")
f.write("hello")
f.close()Three lines, and one of them is pure bookkeeping. .close() doesn't do anything you care about — it's just tidying up after yourself.
Which is exactly why people forget it.