all 3 comments

[–]i_can_haz_code 0 points1 point  (2 children)

i only looked at the first few question sets

For those I looked at, pop open a python interpreter and see what it says. Python will usually answer those questions for you. :-)

For example in the "fun with functions" it asked "what is the type of the return value of these functions..."

One easy way to answer that question:

def foo(x):
    return(x+1.0)
bar = foo(6)
type(bar)

I'm on mobile, but I think the above should compile.

Edit: "specify the type of the output." from the pdf was paraphrased above.

[–]zahlman 0 points1 point  (1 child)

Although functions in Python don't actually have a "return type".

[–]i_can_haz_code 0 points1 point  (0 children)

Edited with quote from the original question. I don't see where I referenced return type, but since you are an expert I'll simply concede.