Examveda

What will be the output of the following Python code?
b=[2,3,4,5]
a=list(filter(lambda x:x%2,b))
print(a)

A. [2,4]

B. [ ]

C. [3,5]

D. Invalid arguments for filter function

Answer: Option C


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python