When a web application opens a file to read or save orders, close the connection when the job is finished. In Python, f.close() releases the file's associated resources. The program used it after loading and saving orders, even though closing files adds a small performance cost. section 11.0
Saving coffee-shop orders
A save function opens orders.json for writing, stores the orders with json.dump, and then calls f.close(). A load function does the same after reading the file. Your turn: add close calls to both functions and trace when each file connection ends. section 11.0



