how to check type input python 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!")