MCQs > IT & Programming > Python > What is the result of the expression: print [k(1) for k in [lambda x: x + p for p in range(3)]]?

Python MCQs

What is the result of the expression: print [k(1) for k in [lambda x: x + p for p in range(3)]]?

Answer

Correct Answer: [3, 3, 3]

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it