Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 8)
8.
What is the purpose of the reduce() function when used with lambda functions?
To create a filter based on a condition
To apply the lambda function to each element of an iterable
To accumulate values from an iterable using the lambda function
To sort the elements of an iterable using the lambda function
Answer: Option
Explanation:
The reduce() function is used to accumulate values from an iterable using the lambda function. It successively applies the lambda function to the elements of the iterable.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.