converting a string to lowercase in python code example
Example 1: python lowercase
string = string.upper()
string = string.lower()
string.islower()
string.isupper()
Example 2: convert string to lowercase in python
str = 'HELLO'
print(str.lower())
#prints "hello"
Example 3: python convert string to lowercase
# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())
Example 4: python capitalize the entire string
message="hi"
print(message)
print(message.upper())
Example 5: python string lowercase
startString = "TeST StrIng"
lowerCaseString = startString.lower()
print(lowerCaseString)
# Output -> "test string"