Huawei
H13-311_V3.5 · Question #214
Which description is wrong about the lambda function of the Python language?
The correct answer is D. The lambda function accepts only one parameter value. See the full explanation below for the reasoning.
Question
Which description is wrong about the lambda function of the Python language?
Options
- Alambda is just an expression, and the function body is much simpler than def.
- BThe body of a lambda can be an expression or a block of code
- CThe lambda function can access the parameters in the global namespace.
- DThe lambda function accepts only one parameter value
How the community answered
(59 responses)- A3% (2)
- B2% (1)
- C10% (6)
- D85% (50)
Community Discussion
No community discussion yet for this question.