Alright, so that was a quick example, but.... >return not x % 2
A light dawns. On Thu, 16 Dec 2004 15:58:38 +0900, Guillermo Fernandez Castellanos <[EMAIL PROTECTED]> wrote: > Well... > > > I find multiple returns to be rather useful > > def isOdd(x): > > if not x % 2: return False > > return True > > I find this easier though... > > def isOdd(x): > return not x % 2 > > Enjoy, > > Guille > -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. _______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor