Question: Python Programming Expression functools.reduce(lambda lst, x: lst + [x], seq, []) produces ..... 1. an iterable that outputs the elements as nested lists, from the
Python Programming
Expression
functools.reduce(lambda lst, x: lst + [x], seq, [])
produces .....
1. an iterable that outputs the elements as nested lists, from the iterable seq
2. a list with the elements in iterable seq in reversed order
3. something else, not listed here
4. a list with the elements in iterable seq
5. the sum of all elements from iterable seq
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
