Does Python have a string ‘contains’ substring method? August 21, 2022 by Tarik Use the in operator: if "blah" not in somestring: continue