Countdown timer program in Python ⌛

Published: 25 October 2022
on channel: Bro Code
204,309
4.2k

#python #tutorial #course

import time

my_time = int(input("Enter the time in seconds: "))

for x in range(my_time, 0, -1):
seconds = x % 60
minutes = int(x / 60) % 60
hours = int(x / 3600)
print(f"{hours:02}:{minutes:02}:{seconds:02}")
time.sleep(1)

print("TIME'S UP!")


On this page of the site you can watch the video online Countdown timer program in Python ⌛ with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 25 October 2022, share the link with friends and acquaintances, this video has already been watched 204,309 times on youtube and it was liked by 4.2 thousand viewers. Enjoy your viewing!