LogiQuest
Back to Lambda and Functional Tools
4

What is the output of the following code?

from functools import reduce
print(reduce(lambda a, b: a * b, [1, 2, 3, 4]))
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.