Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 65)
65.
What is the primary purpose of using a lambda function with the functools.reduce() function?
To filter elements from an iterable.
To apply a transformation to each element of an iterable.
To apply the lambda function cumulatively to the items of an iterable.
To sort the elements of an iterable using the lambda function.
Answer: Option
Explanation:
The functools.reduce() function applies the lambda function cumulatively to the items of an iterable.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.