
Predict
Write, Append, Overwrite
Mode "w" and mode "a" both write, but they treat what's already
in the file very differently.
with open("notes.txt", "w") as f:
f.write("amber\n")
with open("notes.txt", "a") as f:
f.write("teal\n")
with open("notes.txt", "w") as f:
f.write("violet\n")
with open("notes.txt") as f:
print(f.read().split())