lower() method of str class

The lower() method of str class in Python returns a copy of the original string where all the characters are lower cased. Example is given with output.

Str Updated 12 Mar 2017 1 min read

Method Name

lower

Method Signature

lower()

Method Overview

  • lower() returns a copy of the string object with all the characters lower cased.

Example

python
capitalCased = "A sheep eats anything it comes across"

lowercased   = capitalCased.lower()

print(lowercased)

sentenceCased   = "We are roses, said the roses"

lowercased      = sentenceCased.lower()

print(lowercased)

Output

Output
a sheep eats anything it comes across

we are roses, said the roses