Does Python have a string 'contains' substring method?
Asked 07 September, 2021
Viewed 631 times
  • 52
Votes

I'm looking for a string.contains or string.indexof method in Python.

I want to do:

if not somestring.contains("blah"):
   continue

10 Answer