try:
num = int(input("Give me an integer between 1 and 100:"))
while num > 100 or num < 1:
print ("Sorry, that is not an integer between 1 and 100. Try again.")
num = int(input("Give me an integer between 1 and 100:"))
except:
print ("Sorry, that is not an integer between 1 and 100. Try again.")
else:
print ("Thank you for your input")
How do I tell Python to also print "sorry try again" if they entered input such as "pear" or "sd23214"? Thank you.