python - how many letters are capital in a string code example
Example: python - how many letters are capital in a string
def n_upper_chars(string):
return sum(map(str.isupper, string))
def n_upper_chars(string):
return sum(map(str.isupper, string))