[Tutor] Leap years

ahimsa ahimsa@onetel.net.uk
Tue Jan 14 16:51:13 2003


On Sun, 2003-01-12 at 21:54, Gerrit Holl wrote:

> I think it's better to use True and False here.
> Instead of "return 1", "return True".
> Instead of "return 0", "return False".
> 
> It's boolean what's being expected from this function; not an integer.
> It's not natural to return an integer, as it's not natural to return
> a empty or non-empty sequence.
> 

What kind of difference does the return actually make? I know that
'true' /'false' is more user friendly for the person awaiting output
perhaps, but does it make any difference with respect to the programming
itself?

Andrew

-- 
ahimsa <ahimsa@onetel.net.uk>