Python Vérifiez si la chaîne est en entrée
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!")