forked from TrialEndError/Python-Fails
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimer.py
More file actions
Latest commit
26 lines (22 loc) · 470 Bytes
/
Copy pathtimer.py
File metadata and controls
26 lines (22 loc) · 470 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#Gay and barebones Timer.#
importtime
deftimre(x,y=1):
whilex>=0:
time.sleep(y)
print(x," Seconds left...")
x-=1
#I know its misspelled btw#
defdelay(X,y=1):
whilex>0:
time.sleep(y)
x-=1
defonesec():
time.sleep(1)
print("done")
defrep(func,x):
defreprep():
foriinrange(x):
func()
returnreprep
#don't know why but last function doesn't #
#pls help#