You can use the in operator:
in
if "blah" not in somestring: continue
from : https://stackoverflow.com/questions/3437059/does-python-have-a-string-contains-substring-method
No comments:
Post a Comment