[Tutor] Basic terminology
Bernard Lebel
python at bernardlebel.com
Wed Feb 16 02:39:57 CET 2005
Well, thanks everyone who answered, much clearer now.
Bernard
Max Noel wrote:
> In a slightly more generic fashion (everybody started dropping
> examples), the goal of an integer (euclidian) division (say, a / b) is
> to express an integer as such:
>
> a = b * quotient + remainder
>
> Where all the numbers used are integers, and 0 <= remainder < b.
>
> When you perform integer division in Python, a / b (a // b in 2.4+)
> gives you the quotient, and a % b gives you the remainder.
>
> See the other posts for examples of use :p
>
> -- Max
> maxnoel_fr at yahoo dot fr -- ICQ #85274019
> "Look at you hacker... A pathetic creature of meat and bone, panting and
> sweating as you run through my corridors... How can you challenge a
> perfect, immortal machine?"
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
>
More information about the Tutor
mailing list