1 Answered Questions for the topic contains

03/19/19

Does Python have a string 'contains' substring method?

I'm looking for a `string.contains` or `string.indexof` method in Python.I want to do: if not somestring.contains("blah"): continue

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.