str.lowercase code example
Example 1: python convert string to lowercase
# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())
Example 2: python string lowercase
startString = "TeST StrIng"
lowerCaseString = startString.lower()
print(lowerCaseString)
# Output -> "test string"
Example 3: string.lower
string.lower() -- Finds a uppercase on the string argument then sets it back to lowercase