check is all characters of string are lower case or upercase code example
Example: Count lower case characters in a string
def n_lower_chars(string):
return sum([int(c.islower()) for c in string])
def n_lower_chars(string):
return sum([int(c.islower()) for c in string])