xxxxxxxxxx
import time
length = int(input('How many seconds: '))
time.sleep(length)
print('Time is up')
xxxxxxxxxx
import time
time_in_minutes = int(input("Enter how long you want the timer in minutes:" ))
for i in range(0,time_in_minutes*60):
time.sleep(1)
print("timer done")
xxxxxxxxxx
import time
def converter(hours, minutes, seconds):
return hours * 3600 + minutes * 60 + seconds
time.sleep(converter(hrs, mins, secs))
print("time's up")
xxxxxxxxxx
# Python code to make timer
from time import sleep
delay = input("How long do you want to set the timer for? ")
sleep(delay)
print("Times Up!")