python how to check if a number is entered code example
Example: python check if string is in input
try:
val = int(userInput)
except ValueError:
print("That's not an int!")
try:
val = int(userInput)
except ValueError:
print("That's not an int!")