Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 3 what does the lambda function $\\lambda$ x, y: x + y return …

Question

question 3
what does the lambda function $\lambda$ x, y: x + y return when called with arguments 5 and 3?
○ 2
○ 8
○ (5,3)
○ 53

Explanation:

Step1: Identify lambda operation

The lambda function is defined as $\lambda x, y: x + y$, which takes two arguments and returns their sum.

Step2: Substitute given arguments

Replace $x=5$ and $y=3$ into the function.
<Expression>
$5 + 3 = 8$
</Expression>

Answer:

B. 8