Answers for "how to check if something is in a text python"

2

python check if string is in input

try:
   val = int(userInput)
except ValueError:
   print("That's not an int!")
Posted by: Guest on July-26-2020
0

how to check a string in if statement python

if var == 'stringone' or var == 'stringtwo':
    do_something()
Posted by: Guest on November-24-2020

Code answers related to "how to check if something is in a text python"

Python Answers by Framework

Browse Popular Code Answers by Language