[Tutor] defining functions.. why return?

Andrei Kulakov ak@silmarill.org
Thu, 06 Dec 2001 02:57:10 -0500


On Wed, Dec 05, 2001 at 11:48:49PM -0800, Kirby Urner wrote:
> 
> >
> >THe thing is, if a function doesn't execute a return statement, it
> >returns 0 when it finishes.
> 
> Not technically correct.  Unless you explicitly return a
> value, a function returns None, not 0.

Oh, I didn't know that.. thanks.

-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org