193
Python String lower() Method
Python lower() method returns a copy of the string after converting all the characters into lowercase.
Signature
Parameters
No parameter.
Return
It returns a lowercase string.
Let’s see some examples of lower() method to understand it’s functionalities.
Python String lower() Method Example 1
See a simple example in which string is converting into lowercase.
Output:
tutoraspire
Python String lower() Method Example 2
String can be varried and has any case of letters. The method will return a new string of lowercase.
Output:
welcome to TutorAspire , www.tutoraspire.com
Python String lower() Method Example 3
We can test it whether it returning lowercase by using if statement. See the example below.
Output:
lowercase
Next TopicPython Strings