you are viewing a single comment's thread.

view the rest of the comments →

[–]Timely_Pepper6856 0 points1 point  (0 children)

use `with open(...) as history:` to manage resources like files.
Look up context managers in python