[Tutor] easiest way to get true/false of odd/even number

2007-05-14 Thread shawn bright
Hey there all, i know this sounds kinda easy, but i was wanting the least verbose way to get a True / False of a number being odd (not even) thanks shawn ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] easiest way to get true/false of odd/even number

2007-05-14 Thread shawn bright
nevermind, i found it. 4 %2 = 0 (even) 5 %2 = 1 (odd) pretty simple shawn On 5/14/07, shawn bright <[EMAIL PROTECTED]> wrote: Hey there all, i know this sounds kinda easy, but i was wanting the least verbose way to get a True / False of a number being odd (not even) thanks shawn __