python detect uppercase or lowercase 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: python method to check for uppercase character
a="DEMO"
print(a.isupper())
for c in s:
if c.islower():
print c
a="DEMO"
print(a.isupper())