Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 33)
33.
What is the purpose of the functools.partial() function in relation to lambda functions?
To create a partial application of a lambda function.
To create a filter object based on the lambda function's condition.
To sort the elements of an iterable using the lambda function.
To apply the lambda function to each element of an iterable.
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.