I am trying to figure out how I can count the uppercase letters in a string.
I have only been able to count lowercase letters:
def n_lower_chars(st
def n_lower_chars(string): return sum(i.isupper() for i in string)
sums up the numbers of True values in the generator expression