Multiple ChoiceBeginner 30s
functools.reduce
Choose the best answer for: reduce()
Options
- 1reduce is the same operation as map over an iterable
- 2reduce is a built-in needing no import from functools
- 3reduce returns a list of all intermediate results
- 4reduce(fn, iterable) cumulatively applies fn
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.