What happens when Path("notes.txt").write_text("new") targets an existing file?

from Python
intermediate 1 min

What happens when Path("notes.txt").write_text("new") targets an existing file?

Report an error