Python Programming - Lambda Functions
Exercise : Lambda Functions - General Questions
- Lambda Functions - General Questions
66.
What does the following lambda function do?
lambda x: x.lower() if isinstance(x, str) else None
Answer: Option
Explanation:
The lambda function converts a string to lowercase and returns None for non-string values.
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers