Skip to content

Instantly share code, notes, and snippets.

@jay-zhuang
Created April 8, 2013 06:11
Show Gist options
  • Save jay-zhuang/5334591 to your computer and use it in GitHub Desktop.
Save jay-zhuang/5334591 to your computer and use it in GitHub Desktop.
str = "This is Jason, I'm a programmer."
if str.find("Jason") != -1:
foundYou = True
# Here is the Python way to do that:
if "Jason" in str:
foundYou = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment