Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sorted(Counter) solution in Clear category for The Most Wanted Letter by mreinhardt
from collections import Counter
import string
def checkio(text):
count = Counter([c.lower() for c in text if c in string.ascii_letters])
count = sorted(count.items(), key=lambda t: t[0]) # alphabetize
return sorted(count, key=lambda t: t[1], reverse=True)[0][0]
June 4, 2015
Comments: