Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if string is in input

try:
   val = int(userInput)
except ValueError:
   print("That's not an int!")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #string #input
ADD COMMENT
Topic
Name
6+7 =