File size: 214 Bytes
969cf65
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
# /home/user/Desktop/script.py

output_path = "/home/user/Desktop/output.txt"

with open(output_path, "w") as f:
    f.write("Hello from sample Python script!\n")

print(f"Output written to {output_path}")