Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
collections.Counter for letters, min with key solution in Clear category for The Most Wanted Letter by Phil15
from collections import Counter
def checkio(text):
counts = Counter(ch.lower() for ch in text if ch.isalpha())
return min(counts, key=lambda ch: (-counts[ch], ch))
Feb. 28, 2020
Comments: