if type is string python
isinstance(s, str)
python check if string in string
if "blah" not in somestring:
continue
python check if string
type('hello world') == str
# output: True
type(10) == str
# output: False
how to check a string in if statement python
if var in ('stringone', 'stringtwo'):
dosomething()
how to check a string in if statement python
if var == 'stringone' or var == 'stringtwo':
dosomething()