Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 58)
58.
What is the purpose of the reduce() function when used with a lambda function?
To filter elements from an iterable based on the lambda function's condition.
To create a sorted list based on the lambda function's values.
To apply the lambda function cumulatively to the items of an iterable.
To combine two iterables into a single iterable of tuples.
Answer: Option
Explanation:
The reduce() function is used to apply 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.