Skip to content

Instantly share code, notes, and snippets.

@fkei
Created March 6, 2013 14:23
Show Gist options
  • Save fkei/5099618 to your computer and use it in GitHub Desktop.
Save fkei/5099618 to your computer and use it in GitHub Desktop.
Not has_key
>>> items = [1,2,3,4,5]
>>> if 3 in items: print "hit!!"
...
hit!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment