Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Counter(filter(...)), min(..., key=tuple) solution in Clear category for The Most Wanted Letter by A5537
from collections import Counter
def checkio(text: str) -> str:
stats = Counter(filter(str.isalpha, text.lower()))
return min(stats, key=lambda c: (-stats[c], c))
April 7, 2019