The error says: "TypeError: unsupported operand type(s) for Add: 'int' and 'str' on line 39". What does this mean and how do i fix this? Here is the code:
import time
TimeIsUp=0
print ("Timer")
h=int(input("Hours-"))
m=int(input("Minutes-"))
if m>59:
while m>0 and m!=0:
m-=60
h+=1
m+=60
h-=1
s=int(input("Seconds-"))
if s>59:
while s>0 and s!=0:
s-=60
m+=1
s+=60
m-=1
while m>=0 and m!=0:
m-=60
h+=1
m+=60
h-=1
while TimeIsUp==0:
s-=1
if s<0 and m>0:
s+=61
m-=1
if m<0 and h>0:
m+=61
h-=1
else:
if h>0:
s+=61
m+=59
h-=1
else:
TimeIsUp==1
print (h+":"+m+":"+s)
time.sleep(1)
print ("Time's Up!")
The "time" import if from https://trinket.io/python (Because that is what im using to code Phython as a beginner).