how to say that if input doesn't equal stirings in list python code example
Example: how to say that an input needs to be a number python
try:
val = int(userInput)
except ValueError:
print("That's not an int!")
try:
val = int(userInput)
except ValueError:
print("That's not an int!")