QuestionQ123

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

What output should the following code produce?

Question Image

Explanation

The lambda function returns the square of its input. The function therefore computes 1² + (1 + 1)², which equals 5.

Community Discussion

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