Lower() Method Of Str Class

Method Name:

lower

 

Method Signature:

lower()

 

Method Overview:

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

   

Example:

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:

a sheep eats anything it comes across

we are roses, said the roses

 

 

 


Copyright 2019 © pythontic.com