Python Developer — Hard
Key points
- The reduce function applies a function of two arguments cumulatively to the items of iterable
- The lambda function here adds the accumulator and the current element
- The reduce function reduces the list to a single value by applying the lambda function iteratively
Ready to go further?
Related questions
