how to give string in the if statement python code example
Example 1: how to check a string in if statement python
if var in ('stringone', 'stringtwo'):
dosomething()
Example 2: how to check a string in if statement python
if var is 'stringone' or 'stringtwo':
dosomething()