Python String lower() MethodPython lower() method returns a copy of the string after converting all the characters into lowercase. SignatureParametersNo parameter. ReturnIt returns a lowercase string. Let's see some examples of lower() method to understand it's functionalities. Python String lower() Method Example 1See a simple example in which string is converting into lowercase. Output: javatpoint Python String lower() Method Example 2String can be varried and has any case of letters. The method will return a new string of lowercase. Output: welcome to javatpoint, www.javatpoint.com Python String lower() Method Example 3We can test it whether it returning lowercase by using if statement. See the example below. Output: lowercase
Next TopicPython Strings
|
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