return statement in functions

Paul Rubin http
Tue Dec 23 02:35:24 CET 2003

hokiegal99 at (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