accept maximum of 30 lower case charcaters in python code example
Example: Count upper case characters in a string
def n_upper_chars(string):
return sum([int(c.isupper()) for c in string])
def n_upper_chars(string):
return sum([int(c.isupper()) for c in string])