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