Returning a List

Shiva shivaji_tn at yahoo.com
Fri Oct 3 13:45:49 CEST 2014


Chris Angelico <rosuav <at> gmail.com> writes:

> 
> On Fri, Oct 3, 2014 at 9:35 PM, Shiva
> <shivaji_tn <at> yahoo.com.dmarc.invalid> wrote:
> > Why is return d or return b+c not returning anything??
> >
> 
> On what basis do you believe it's not returning anything? When you
> call it, down below, you're ignoring its return value. I expect it's
> returning just fine, but you then do nothing with it.
> 
> ChrisA
> 


I wrongly thought calling the function was enough. Looks like the call is
just a placeholder for the returned value. Need to print it out.

Thanks!!




More information about the Python-list mailing list