This article mainly introduces Python in the conversion of letters to lowercase lower () method used, is the basic knowledge of Python learning, need friends can refer to the
The lower () method returns a copy of all case-based characters converted to lowercase strings.
The following is the syntax for the lower () method:
All uppercase and lowercase characters returned by this method are converted to a copy of the lower case string.
The following example shows the use of the lower () method.
|1 2 3 4 5||#!/usr/bin/python str = "This is STRING EXAMPLE .... WOW!!! "; Print Str.lower ();|
When we run the above program, it produces the following results:
|1||This is string EXAMPLE....WOW!!!|