python turn string to lowercase code example
Example 1: from uppercase to lowercase python
# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())
Example 2: python all lowercase letters
import string
print string.ascii_lowercaseOutputabcdefghijklmnopqrstuvwxyz
Example 3: python string lowercase
startString = "TeST StrIng"
lowerCaseString = startString.lower()
print(lowerCaseString)
# Output -> "test string"