Skip to content

Instantly share code, notes, and snippets.

@danbruegge
Created December 11, 2012 09:30
Show Gist options
  • Save danbruegge/4257304 to your computer and use it in GitHub Desktop.
Save danbruegge/4257304 to your computer and use it in GitHub Desktop.
[dan buildout]$ python2
Python 2.7.3 (default, Apr 24 2012, 00:00:54)
[GCC 4.7.0 20120414 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 4 % 1
0
>>> 4 % 2
0
>>> 4 % 3
1
>>> 4 % 4
0
>>> 4 % 8
4
>>> 4 % 2
0
>>> 4 % 5
4
>>> 4 % 6
4
>>> 4 % 6
4
>>> 4 % 7
4
>>> 4 % 8
4
>>> 4 % 9
4
>>> 4 % 10
4
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment