How to Convert Python String into Lowercase?

06-Dec-2022

.

Admin

How to Convert Python String into Lowercase?

Hi Dev,

Now, let's see example of how to convert python string into lowercase. it's simple example of how to turn a string into lowercase python. We will use how to convert string into lowercase in python. this example will help you python function to convert string to lowercase.

There is a way to convert a string into lowercase in python. i will give you one example using lower() method to convert string into lowercase. so let's see the below examples.

so let's see following examples with output:

Example 1:


main.py

myString = "ItSolutionStuff.com is a great SITE!"

# String Convert to LowerCase

lowerString = myString.lower()

print(lowerString);

Output:

itsolutionstuff.com is a great site!

#Python