How will you convert a string to all lowercase?
-
To convert String to lowercase, you can use
lower()
v function on the String.String.lower()
function returns a string with all the characters of this string converted to lower case. -
Syntax -
string.lower()
text = "A - B - C - D - E - F"
x = text.lower()
print(x)
# Output:
a - b - c - d - e - f