Upload 2 files
Browse files- gold_output.txt +1 -0
- sample_script.py +8 -0
gold_output.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Hello from sample Python script!
|
sample_script.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# /home/user/Desktop/script.py
|
| 2 |
+
|
| 3 |
+
output_path = "/home/user/Desktop/output.txt"
|
| 4 |
+
|
| 5 |
+
with open(output_path, "w") as f:
|
| 6 |
+
f.write("Hello from sample Python script!\n")
|
| 7 |
+
|
| 8 |
+
print(f"Output written to {output_path}")
|