Skip to content

Commit 97419c4

Browse files
committed
timer
1 parent 7ce998b commit 97419c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bit_manipulation/timer.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import time
2+
set_time=int(input("enter the time"))
3+
for i in range(set_time,0,-1):
4+
second=i%60
5+
minuit=int(i/60)%60
6+
hour=int(i/3600)
7+
print(f"{hour:02}:{minuit:02}:{second:02}")
8+
time.sleep(1)
9+
print("your time is over")

0 commit comments

Comments
 (0)