nateraw commited on
Commit
0d02ac5
·
1 Parent(s): 07dde80

Create your_script.py

Browse files
Files changed (1) hide show
  1. 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)