Spaces:
Sleeping
Sleeping
Create your_script.py
Browse files- your_script.py +10 -0
your_script.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import time
|
| 2 |
+
|
| 3 |
+
# Open the file in append mode
|
| 4 |
+
with open("outputs/message.txt", "a") as file:
|
| 5 |
+
# Loop 60 times
|
| 6 |
+
for i in range(60):
|
| 7 |
+
# Append the value of i to the file
|
| 8 |
+
file.write(str(i) + "\n")
|
| 9 |
+
# Wait for 1 second
|
| 10 |
+
time.sleep(1)
|