[Tutor] The % operator (original) (raw)

Bernard Lebel python at bernardlebel.com
Wed Jul 7 09:30:58 CEST 2004


Thanks Bill.

I meant the % operator at large. When I say that I couldn't retrieve it I meant I couldn't retrieve its description in the documentation (wich is the case for at 50% of the things I search!).

Bernard

----- Original Message ----- From: "William Rance" <rantek at pacific.net.sg> To: "Bernard Lebel" <atyss4si at hotmail.com> Sent: Wednesday, July 07, 2004 7:27 AM Subject: Re: [Tutor] The % operator

I assume you mean the %(modulo) operator. e.g. if a%b == 0, a is divisible by b.e.g 15%2 == 1; 25%23 == 2; that is it gives you the remainder. It is not clear why you cannot retrieve it. Best way is provide your code and we can see what is going on. Bill ----- Original Message ----- From: "Bernard Lebel" <atyss4si at hotmail.com> To: <tutor at python.org> Sent: Tuesday, July 06, 2004 4:46 AM Subject: [Tutor] The % operator

> Hello, > > I have been reading many examples where the % operator is used, and I know I > have read in the docs its meaning. However I can't seem to be able to > retrieve it, and a search doesn't return interesting results. > So I'm turning to you, honorable people: could someone be kind to explain to > me what is doing the % operator, how it works, or at least point me to the > appropriate page in the Python documentation? > > > Thank you > Bernard > > _> ________________________ > Tutor maillist - Tutor at python.org > http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list