Answers for "python if string is this or that"

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 "python if string is this or that"

Python Answers by Framework

Browse Popular Code Answers by Language