Conte os caracteres maiúsculos em uma corda
def n_upper_chars(string):
return sum([int(c.isupper()) for c in string])
Friendly Flatworm
def n_upper_chars(string):
return sum([int(c.isupper()) for c in string])