Lowercase String Method in Python

  • Post category:String

In this article, you will see how to use the lowercase string method in Python. The string lowercase means converting all letters to lowercase. In Python, you can use the lower() method to lowercase a string.

Step 1: Create a string

str = "CODEALLOW"
print("str = ", str)
print("str type = ", type(str))

Step 2: Lowercase string

print("Lowercased = ", str.lower())

Output:

str =  CODEALLOW
str type =  <class 'str'>
Lowercased =  codeallow

Free resources to learn advanced skills: AiHints and CodeAllow