Function passed as an argument returns none
Chris Angelico
rosuav at gmail.com
Thu Oct 2 00:02:58 EDT 2014
More information about the Python-list mailing list
Thu Oct 2 00:02:58 EDT 2014
- Previous message (by thread): Function passed as an argument returns none
- Next message (by thread): Function passed as an argument returns none
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Oct 2, 2014 at 12:29 PM, Rustom Mody <rustompmody at gmail.com> 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. ChrisA
- Previous message (by thread): Function passed as an argument returns none
- Next message (by thread): Function passed as an argument returns none
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list