QuestionQ112

VerifiedMiscellaneous (List Comprehensions, Lambdas, Closures, I/O)

Assuming the following code has run successfully, select the expressions that evaluate to True.

Question Image

Choose two
Explanation

Each call to f creates and returns a function g that returns the square of its argument. Thus, a(2) returns 4, and a is a function object, not None.

Community Discussion

No comments yet. Be the first to start the discussion!