Hitung karakter huruf besar dalam string
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])