nateraw commited on
Commit
e4efafc
1 Parent(s): 03bd038

Update your_script.py

Browse files
Files changed (1) hide show
  1. 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
- # Loop 60 times
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 second")
13
- # Wait for 1 second
14
- time.sleep(1)
 
 
 
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()