Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First: defaultdict solution in Clear category for The Most Wanted Letter by leggewie
from string import punctuation, ascii_lowercase
from collections import defaultdict
def checkio(text: str) -> str:
t = text.lower()
c = defaultdict(int)
for letter in t:
if letter in ascii_lowercase:
c[letter] += 1
return max(sorted(c), key=c.get)
June 12, 2021
Comments: