So I have this code that sorts characters in a string and counts the number of times it\'s repeated.
def char_repetition(str): reps = dict() word