Python program to convert string uppercase to lowercase; Through this tutorial, i am going to show you how to convert python strings (letters or characters) uppercase to lowercase.
How to convert uppercase to lowercase in python
See the following method to write program to convert uppercase to lowercase in python:
- 1: Convert uppercase to lowecase in python with using the function
1: Convert uppercase to lowecase in python with using the function
The Python string lower() method converts all letters or characters of string uppercase to lowercase.
The syntax of lower() method is:
string.lower()
String lower() Parameters()
The lower() method doesn’t take any parameters.
Return value from String lower()
The lower() method returns the lowercased string from the given string. It converts all uppercase characters to lowercase.
Example 1: write a program to convert all uppercase to lowercase characters in python
See the following example for program to convert all uppercase to lowercase characters in python:
# example string string = "THIS IS FIRST EXAMPLE OF CONVERT STRING UPPERCASE TO LOWERCASE STRING" print(string.lower()) #Output #this is first example of convert string uppercase to lowercase string
The output of above python program is:
this is first example of convert string uppercase to lowercase string
Be First to Comment