Python Programming - Lambda Functions - Discussion

Discussion Forum : Lambda Functions - General Questions (Q.No. 39)
39.
What does the following lambda function accomplish?
lambda x: x.upper()
Converts a string to lowercase.
Converts a string to uppercase.
Reverses a string.
Trims leading and trailing whitespaces from a string.
Answer: Option
Explanation:
The lambda function lambda x: x.upper() converts a string to uppercase.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.