Đặng Thị Thúy Hằng
New member
What will be the output of the following Python code?
A. [2,4]
B. [ ]
C. [3,5]
D. Invalid arguments for filter function
Code:
b=[2,3,4,5]
a=list(filter(lambda x:x%2,b))
print(a)
B. [ ]
C. [3,5]
D. Invalid arguments for filter function