Countdown timer program in Python ⌛

Описание к видео Countdown timer program in Python ⌛

#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!")

Комментарии

Информация по комментариям в разработке