79105015

Date: 2024-10-19 13:13:17
Score: 1.5
Natty:
Report link

Try using os.chdir() before opening the file:

import os

os.chdir(r"C:\Users\Documents\")

f = open("blight.txt", "a")
f.write("suppress this later")
f.close()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cbspace