1.

The single line equivalent of the code shown below is: l=[1, 2, 3, 4, 5] def f1(x): return x

A. filter(lambda x:x<0, l)
B. filter(lambda x, y: x<0, l)
C. filter(reduce x<0, l)
D. reduce(x: x<0, l)
Answer» B. filter(lambda x, y: x<0, l)


Discussion

No Comment Found