Hello this is part of my code I'm working on. I wanted to know if there was a way to detect if the input typed is an alphabet and give a response. I need to subtracted the time so I converted it to a int but if anything other than a int is type if gives me an error.
def Continue():
time = int(input("What time is it?: "))
if time > 12:
print ("I'm sorry, just the hour, I don't need anymore than that.")
Continue()
else:
print ("It's %d" % time + "?!")
time = time - 1
print ("I'm late!\nI'm sorry I have to go!\nI'm sure your leg is fine just walk it off!")
print ("I was suppose to be there at %d" % time, "I'm an hour late!")