how to validate input in python if it as a specific string in it 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!")