How to use lower in python

silencement
Release: 2019-06-20 14:37:18
Original
7606 people have browsed it

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()
Copy after login

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();
Copy after login

The output result of the above example is as follows

this is string example....wow!!!
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!