[N00B] What's %?

Simon Brunning simon.brunning at gmail.com
Thu Feb 10 12:47:33 EST 2005


On Thu, 10 Feb 2005 09:41:07 -0800 (PST), administrata
<administrata at hotmail.com> wrote:
> Hi! it's been about a week learning python!
> I've read 'python programming for the absolute begginer'

I hope you are enjoying it. ;-_

> I don't understand about % like...
> 
> 107 % 4 = 3
> 7 % 3 = 1

It;'s modular aritmetic. See
<http://en.wikipedia.org/wiki/Modular_arithmetic> and
<http://www.python.org/doc/2.3.4/ref/binary.html>.

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list