Skip to content

Commit ea874bc

Browse files
authored
Created Scheduler.py
1 parent ae41d9c commit ea874bc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Scheduler.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import schedule
2+
import time
3+
4+
def x():
5+
print("Hello World")
6+
7+
def y():
8+
print("Python 3.8")
9+
10+
schedule.every(5).seconds.do(x)
11+
schedule.every(15).seconds.do(y)
12+
13+
while True:
14+
schedule.run_pending()
15+
time.sleep(1)

0 commit comments

Comments
 (0)