python .lowercase code example
Example 1: 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']
Example 2: python lowercase
// turn to lower/upper
string = string.upper()
string = string.lower()
// check if all letter are lower or upper
string.islower()
string.isupper()
Example 3: convert string to lowercase in python
str = 'HELLO'
print(str.lower())
Example 4: python convert string to lowercase
s = "Kilometer"
print(s.lower())
Example 5: lowercase letters python
string.lower()