1 / 8
INTRO

The Line Everyone Forgets

Look at what you've been writing:

python
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.