Homepython Does Python have a string 'contains' substring method? bySharecodepoint -April 28, 2020 You can use the in operator: if "blah" not in somestring: continue Tags: python python example python problems Facebook Twitter