Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 50)
50.
What is the purpose of the functools.partial() function when used with a lambda function?
To create a partial application of a lambda function.
To create a filter object based on the lambda function's condition.
To apply the lambda function to each element of an iterable.
To sort the elements of an iterable using the lambda function.
Answer: Option
Explanation:
functools.partial() is used to create a partial application of a function, including lambda functions, by fixing certain arguments.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.