Python Programming - Lambda Functions - Discussion
Discussion Forum : Lambda Functions - General Questions (Q.No. 41)
41.
When using the
sorted()
function with a lambda function to sort a list of strings, how can the sorting be case-insensitive?
Answer: Option
Explanation:
Using
lower()
inside the lambda function converts strings to lowercase, achieving case-insensitive sorting.
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