Program is to Count Total number of Capital and Small Letters from string. Remove syntax error and print the output. code example
Example: Count upper case characters in a string
def n_upper_chars(string):
return sum([int(c.isupper()) for c in string])