Update your_script.py
Browse files- your_script.py +6 -5
your_script.py
CHANGED
@@ -5,10 +5,11 @@ Path('outputs').mkdir(exist_ok=True, parents=True)
|
|
5 |
|
6 |
# Open the file in append mode
|
7 |
with open("outputs/message.txt", "a") as file:
|
8 |
-
|
9 |
-
for i in range(60):
|
10 |
# Append the value of i to the file
|
11 |
file.write(str(i) + "\n")
|
12 |
-
print(f"Wrote {i}. Sleeping for 1
|
13 |
-
# Wait for
|
14 |
-
time.sleep(
|
|
|
|
|
|
5 |
|
6 |
# Open the file in append mode
|
7 |
with open("outputs/message.txt", "a") as file:
|
8 |
+
for i in range(20):
|
|
|
9 |
# Append the value of i to the file
|
10 |
file.write(str(i) + "\n")
|
11 |
+
print(f"Wrote {i}. Sleeping for 1 min")
|
12 |
+
# Wait for a minute
|
13 |
+
time.sleep(60)
|
14 |
+
|
15 |
+
Path('done.txt').touch()
|