The lower() method in Python String returns a copy of the string where all the case-based characters have been lowercased i.e. the lower() function in Python converts all the uppercase characters within a string into the lowercase characters and then returns it. The lower() method here returns a string with all the characters in lower case. Symbols and Numbers here are ignored.
Here is the syntax for lower() method:
str.lower()
This method in Python String is responsible for returning a copy of the string where every case-based character is lowercase.
The following example shows the usage of lower() method.
#!/usr/bin/python str = "THIS IS STRING EXAMPLE....WOW!!!"; print str.lower()
When we run the above program, it produces the following result:
this is string example....wow!!!
Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.