EN
Python - convert string to lowercase
0 points
In this article, we would like to show you how to convert string to lowercase in Python.
Quick solution:
xxxxxxxxxx
1
text = "ABC"
2
print(text.lower()) # abc
In this example, we use lower()
method to lowercase the string.
xxxxxxxxxx
1
text = "ABC"
2
print(text.lower()) # abc
Output:
xxxxxxxxxx
1
abc