[N00B] What's %?
Grant Edwards
grante at visi.com
Thu Feb 10 14:48:11 EST 2005
On 2005-02-10, Peter Hansen <peter at engcorp.com> wrote:
> Grant Edwards wrote:
>> It's the modulus operator. It returns the remainder of integer
>> division. As we used to say in second grade:
>>
>> 4 goes into 107 26 times with 3 left over.
>>
>> 3 goes into 4 2 times with 1 left over.
>
> How long were you stuck in second grade, Grant? <grin>
What? 50% wasn't a passing grade when you were in 2nd grade?
> P.S. You're correct, for large values of four.... ;-)
and for small values of 3.
--
Grant Edwards grante Yow! I'm a GENIUS! I
at want to dispute sentence
visi.com structure with SUSAN
SONTAG!!
More information about the Python-list
mailing list