Step-by-step explanation:
userInput = input("Enter Number")
try:
val = int(userInput)
except ValueError:
print("That's not an int!")
3.6m questions
4.6m answers