Python Programming - Lambda Functions - Discussion
Discussion Forum : Lambda Functions - General Questions (Q.No. 43)
43.
What does the following lambda function do?
lambda x: x if x % 2 == 0 else None
Answer: Option
Explanation:
The lambda function filters out even numbers by returning None for them.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers