On Sat, Oct 3, 2015 at 1:40 PM, Ronald Cosentino <ronjc.2...@gmail.com>
wrote:

> def funA(x,y,z):
>     return (x+y) * z
>
The above takes 3 values and returns a value


> def funB(x,y):
>     return(x-y)
>
The above takes 2 values and returns a value


> print(funA(4,funB(2,3), funB(3,2)))
>

you are printing the result of funA, to which you are passing 4, the value
returned by funB(2,3) and the value returned by funB(3,2)

So, print(funA(4, -1, 1))

Which is 4 + -1 * 1

Which is 3 * 1


>
> the answer is 3. I don't know how it works.
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to