Count frequency of characters
for i in range ( len ( s ) ) : NEW_LINE INDENT if ( ord ( s [ i ] ) >= 65 and ord ( s [ i ] ) <= 90 ) : NEW_LINE INDENT caps [ ord ( s [ i ] ) - 65 ] += 1 NEW_LINE DEDENT else : NEW_LINE INDENT small [ ord ( s [ i ] ) - 97 ] += 1 NEW_LINE DEDENT DEDENT