Answers for "change to lowercase in python"

4

how to lowercase list in python

[x.lower() for x in ["A","B","C"]]
['a', 'b', 'c']

>>> [x.upper() for x in ["a","b","c"]]
['A', 'B', 'C']

>>> map(lambda x:x.lower(),["A","B","C"])
['a', 'b', 'c']
>>> map(lambda x:x.upper(),["a","b","c"])
['A', 'B', 'C']
Posted by: Guest on May-06-2020
9

python to uppercase

original = Hello, World!

#both of these work
upper = original.upper()
upper = upper(original)
Posted by: Guest on March-12-2020
3

python string to lower

str = 'heLLo WorLD'
print(str.lower())
# hello world
Posted by: Guest on October-26-2020

Code answers related to "change to lowercase in python"

Python Answers by Framework

Browse Popular Code Answers by Language