Skip to content

Instantly share code, notes, and snippets.

@MarkRoddy
Created February 23, 2015 20:24
Show Gist options
  • Save MarkRoddy/9319d0d709b1045630b4 to your computer and use it in GitHub Desktop.
Save MarkRoddy/9319d0d709b1045630b4 to your computer and use it in GitHub Desktop.
>>> s = "foo bar baz biz"
>>> any((s.__contains__(other) for other in ["foo", "bar", "baz", "bitz"]))
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment