Spaces:
Sleeping
Sleeping
Update your_script.py
Browse files- your_script.py +2 -3
your_script.py
CHANGED
@@ -8,8 +8,7 @@ with open("outputs/message.txt", "a") as file:
|
|
8 |
for i in range(2):
|
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()
|
|
|
8 |
for i in range(2):
|
9 |
# Append the value of i to the file
|
10 |
file.write(str(i) + "\n")
|
11 |
+
print(f"\t- (from {__file__}): Wrote {i}. Sleeping for 1 min")
|
12 |
# Wait for a minute
|
13 |
time.sleep(60)
|
14 |
+
print(f"\t- (from {__file__}): Done!")
|
|