tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code05:56

Countdown timer program in Python ⌛

Bro Code ↗

From the creator

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

Published 2022-10-25 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code