I'm writing a simple exception handler in Python 3.5 to check if user input is an integer. I'm wondering what the standard practice is for exiting a program if the input is invalid.
#Excersise working with number exceptions
user_in = input("Please enter a number: ")
try:
val = int(user_in)
except ValueError:
print("Invalid int")
#exit statement here
print ("You entered: " + str(user_in))