Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Most Wanted Letter by light2happy.718
import string
def checkio(text):
"""Return most common letter."""
normalized = text.lower()
letters_set = set(normalized) & set(string.ascii_lowercase)
return max(letters_set, key=lambda c: (normalized.count(c), -ord(c)))
May 19, 2015
Comments: