Python3 lower() method
Description
The Python lower() method converts all uppercase characters in a string to lowercase.
Syntax
The syntax of the lower() method is:
str.lower()
Parameters
- None.
Return Value
Returns a string generated by converting all uppercase characters in the string to lowercase.
Example
The following example demonstrates how to use lower():
#!/usr/bin/python3 str = "Example EXAMPLE....WOW!!!" print( str.lower() )
The output of the above example is as follows:
example example....wow!!!
Other Extensions
Python3 String