Use Counter.most_common to retrieve counted elements in descending frequency order. Counter accepts a sequence such as a word and produces count data. section 4.15 section 4.22
Find a word’s most repeated letter count
Counter(word).most_common(1) returns a one-element list containing a (letter, count) tuple. Indexing [0][1] extracts its count: def most_repeating_letter_count(word): return Counter(word).most_common(1)[0][1]. Use that function as max’s key when selecting the word with the strongest repetition. section 4.15
>>> Counter('abcabcabbbc').most_common(1) #1
[('b', 5)]
Compare unrestricted results with most_common(1), which limits the output to the highest-count item. section 4.15

