diff --git a/bit_manipulation/timer.py b/bit_manipulation/timer.py new file mode 100644 index 000000000000..a96262a96903 --- /dev/null +++ b/bit_manipulation/timer.py @@ -0,0 +1,9 @@ +import time +set_time=int(input("enter the time")) +for i in range(set_time,0,-1): + second=i%60 + minuit=int(i/60)%60 + hour=int(i/3600) + print(f"{hour:02}:{minuit:02}:{second:02}") + time.sleep(1) +print("your time is over") \ No newline at end of file