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 2024 © pythontic.com