Skip to content
What I Broke

Let's take a look at what I've broken today

BlogAboutArchivesLinkedIn
3 November 2017Chris Owens

Check if String Contains a Substring - Python

GuidesRoboticsWeb Development

Hey everyone,

Just a quick post on how to check if a string contains a string in python:
if "STRINGTOFIND" in "testtesttestSTRINGTOFINDtestesttest": # continue

Thanks to this stackoverflow post: https://stackoverflow.com/a/5473023/522859

TagsguidePython
Previous postVirtualDog Tutorial PluralSight
Next postConverting proto files to .py on Windows - Tensorflow

Find a fix

Topics

  • AWS35
  • Azure13
  • Errors146
  • Guides154
  • Robotics45
  • Web Development258
All categories

Archives

  • 20251
  • 20241
  • 202313
  • 202215
  • 202122
  • 202022
  • 201931
  • 201854
  • 201722
  • 20164
  • 201513
  • 201434
  • 201340
  • 201251
  • 201132

Chris Owens

Notes on programming, web development, and robotics.

Connect on LinkedIn
What I Broke · Chris Owens
RSSTagsLinkedIn