Function passed as an argument returns none

Chris Angelico rosuav at
Thu Oct 2 06:02:58 CEST 2014

On Thu, Oct 2, 2014 at 12:29 PM, Rustom Mody <rustompmody at> wrote:
> So by now you know there are 2 kinds of return:
> So the morals in short:
> 1. Stick to the return that works -- python's return statement --
> and avoid the return that seems to work -- the print statement

Please. There are not two types of return; there are two completely
different things here. Don't pretend that print is a bad form of
return. It isn't.


More information about the Python-list mailing list