0
Write a lambda function to convert a string value to lowercase in Python.
Using lambda function convert string to lower( )
7 Respuestas
+ 3
Do you mean something like this?
>test = lambda a: a.lower()
>print(test("HKQO"))
+ 3
What is your question?
+ 3
What's the point of writing it? a simple call to lower() method will do.
+ 3
Emerson Prado
You are right. I will not give answers right away until I feel op already tried things or shown their attempt.
In this case though, I was confirming if this was what he wanted to do because as Ipang mentioned that using lower() method is better.
+ 2
Ya bro👍
+ 2
Sandeep Pls don't give finished code as answer. This is a learning app, and solving the problem is part of the process. Prefer giving hints for the OP to find the solution.
0
Ya i know that😊 but the Question is.. Using lambda how can we write it