Python String lower() Method
Python lower() method returns a copy of the string after converting all the characters into lowercase.
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.
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.
welcome to javatpoint, www.javatpoint.com
Python String lower() Method Example 3
We can test it whether it returning lowercase by using if statement. See the example below.
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week