Count Uppercase, Lowercase, special character and numeric values code example
Example: Count upper case characters in a string
def n_upper_chars(string):
return sum([int(c.isupper()) for c in string])
def n_upper_chars(string):
return sum([int(c.isupper()) for c in string])