0

Write a lambda function to convert a string value to lowercase in Python.

Using lambda function convert string to lower( )

24th Jun 2022, 10:06 AM
Shiva raj
7 Antworten
+ 3
Do you mean something like this? >test = lambda a: a.lower() >print(test("HKQO"))
24th Jun 2022, 12:00 PM
Sandeep
Sandeep - avatar
+ 3
What is your question?
24th Jun 2022, 10:18 AM
Justice
Justice - avatar
+ 3
What's the point of writing it? a simple call to lower() method will do.
24th Jun 2022, 10:56 AM
Ipang
+ 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.
25th Jun 2022, 3:21 AM
Sandeep
Sandeep - avatar
+ 2
Ya bro👍
24th Jun 2022, 12:26 PM
Shiva raj
+ 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.
25th Jun 2022, 2:36 AM
Emerson Prado
Emerson Prado - avatar
0
Ya i know that😊 but the Question is.. Using lambda how can we write it
24th Jun 2022, 11:06 AM
Shiva raj