check upper or lowercase in python code example
Example 1: how to check if a letter is lowercase in python
for c in s:
if c.islower():
print c
Example 2: from uppercase to lowercase python
# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())