[Tutor] Making a Primary Number List generator

Marc Tompkins marc.tompkins at gmail.com
Tue May 14 02:16:50 CEST 2013


On Mon, May 13, 2013 at 5:13 PM, Marc Tompkins <marc.tompkins at gmail.com>wrote:

> In fact, you could shorten your isodd() function to:
> > def isodd(candidate):
> >    return candidate%2 !=0:
> and it would function identically.
>

Sorry - that should be
> def isodd(candidate):
>    return candidate%2 !=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130513/3ec6f3d0/attachment.html>


More information about the Tutor mailing list