return statement in functions
Paul Rubin
http
Mon Dec 22 20:35:24 EST 2003
hokiegal99 at hotmail.com (hokiegal99) writes:
> I was told earlier (w/o explanation) that functions should return
> something. I was under the impression that it was OK with Python to
> leave the return statement off. Could someone enlighten me on why or
> why not to use a return statement when defining functions? Below is
> the bit of code I was told should return something:
It will return None.
More information about the Python-list
mailing list