I'm looking for a string.contains or string.indexof method in Python.
string.contains
string.indexof
I want to do:
if not somestring.contains("blah"): continue
Use the in operator:
in
if "blah" not in somestring: continue
Note: This is case-sensitive.