Python - ile liter jest kapitałem w ciągu

def n_upper_chars(string):
    return sum(map(str.isupper, string))
Lazy Lizard