I have written a script in Python and I want to make it so if you don't input a number when it asks "What's your age?" It will say "Please input a number" and then repeat the original question. I have tried many different suggestions I have seen on other posts but none of them are working.
Here is the script:
yesorno = "yes"
while yesorno == "yes" :
import time
Age = 0
Age = int(input("What is your age?"))
Age = Age*365*24
print(Age)
yesorno = input("Would you like to run again?(yes/no)")
while yesorno != "no" :
print("Please input yes or no")
yesorno = input("Would you like to run again?(yes/no)")
while yesorno == "no" :
print("Program stopping...")
import sys
sys.exit("Program stopping...")