1.

The single line equivalent of the following Python code?

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)View Answer
Answer» B. filter(lambda x, y: x<0, l)


Discussion

No Comment Found