Skip to content

Instantly share code, notes, and snippets.

@elpargo
Created July 3, 2013 21:15
Show Gist options
  • Save elpargo/5922882 to your computer and use it in GitHub Desktop.
Save elpargo/5922882 to your computer and use it in GitHub Desktop.
>>> range(0) == True
False
>>> range(1) == True
False
>>> if range(1):
... print True
...
True
>>> if not range(0):
... print False
...
False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment