Skip to content

Commit 6a61929

Browse files
authored
Merge pull request #277 from Cheemashyper/scheduler
Created Scheduler.py
2 parents 4653b1e + ea874bc commit 6a61929

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)