Python Verifique si la cadena está en entrada
try:
val = int(userInput)
except ValueError:
print("That's not an int!")
Annoyed Ant
try:
val = int(userInput)
except ValueError:
print("That's not an int!")