Why lambda forms in python do not have statements?



Why lambda forms in python do not have statements?..

Answer / Harshit Arora

In Python, `lambda` functions are anonymous and are used for short, simple functions. They cannot have a body with multiple lines or statements, so they can only contain one expression.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Is indentation required in python?

1 Answers  


What is python xrange?

1 Answers  


What is the difference between a function and a method python?

1 Answers  


What does __ file __ mean?

1 Answers  


Why do we need to overload operators?

1 Answers  


How ternary operators are used in python?

1 Answers  


What does truncate mean in python?

1 Answers  


How do you sort values in descending order in python?

1 Answers  


Explain raise keyword?

1 Answers  


What is python easy?

1 Answers  


What is tuple unpacking?

1 Answers  


What is python coded in?

1 Answers  


Categories