how to make strings lowercase in python code example
Example 1: python lowercase
string = string.upper()
string = string.lower()
string.islower()
string.isupper()
Example 2: python convert string to lowercase
# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())
Example 3: python3 lowercase
str.lower()
Example 4: how to check if a string is lowercase in python
string = "python"
string.islower()
#returns true or false
#or we can use this
string == string.lower()
#returns true or false