if statements python strings code example
Example 1: how to check a string in if statement python
if var in ['string one', 'string two']:
do_something()
Example 2: how to check a string in if statement python
if var in ('stringone', 'stringtwo'):
dosomething()