Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
dict + lambda solution in Clear category for The Most Wanted Letter by kdim
def checkio(text: str) -> str:
t = text.lower()
d = {i: t.count(i) for i in t if 'a' <= i <= 'z'}
return sorted(d.items(), key=lambda x: (-x[1], x[0]))[0][0]
Jan. 28, 2021
Comments: