Home  >  Article  >  Backend Development  >  How to use lower in python

How to use lower in python

silencement
silencementOriginal
2019-06-20 14:37:187573browse

How to use lower in python

Description

The Python lower() method converts all uppercase characters in a string to lowercase.

Syntax

lower() method syntax:

str.lower()

Return value

Returns all uppercase characters in the string converted to The generated string after lowercase.

Example

The following example shows how to use lower():

#!/usr/bin/python

str = "THIS IS STRING EXAMPLE....WOW!!!";

print str.lower();

The output result of the above example is as follows

this is string example....wow!!!

The above is the detailed content of How to use lower in python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn