Vidyalelo
Python · Q130

Functions in Python

Programming · Python · question 130

Q130

What will be the output of the following Python code? import functools l=[1, 2, 3, 4, 5] m=functools.reduce(lambda x, y:x if x>y else y, l) print(m)

A.
Error
B.
Address of m
C.
1
D.
5
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board