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
Recommended Python Tutorials
Recommended:-Python Global Keyword
Recommended:-Python Modules
Recommended:-Python Create and Import Package
Recommended:-Python Numbers and Type Conversion
Recommended:-Python Lists
Recommended:-Python Tuple with Example
Recommended:-Python Strings
Recommended:-Python Sets and Sets Function
Recommended:-Python Dictionary With Dictionary Function
Recommended:-Python Math Functions | Built-in Math Function
Recommended:-Python String Methods/Functions
Recommended:-List methods in Python
Recommended:-Python Remove First & Last Character from String