πŸ“Š Python
Q. What is the output of the following code?
Code:
x = lambda a : a + 10
print(x(5))
  • (A) 10
  • (B) 5
  • (C) 15
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 15

Explanation: lambdas are concise functions and therefore, the result = 5 + 10 = 15

Explanation by: Rajeev Malhotra
lambdas are concise functions and therefore, the result = 5 + 10 = 15

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
200
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
87%
Success Rate