[N00B] What's %?

Kristian M Zoerhoff zoerhoff at ukato.freeshell.org
Thu Feb 10 13:02:11 EST 2005


In article <614c778e.0502100938.6665cb52 at posting.google.com>, administrata wrote:
> I don't understand about % like...
> 
> 107 % 4 = 3
> 7 % 3 = 1
> 

That's the modulo operation; it returns the remainder, rather than the quotient.

-- 
zoerhoff(AT)sdf.lonestar.org 
kristian.zoerhoff(AT)gmail.com



More information about the Python-list mailing list