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 maurice.makaay
from collections import Counter
import re
def checkio(text):
letters = re.sub("[^a-z]", "", text.lower())
letter_counts = Counter(letters)
max_count = max(letter_counts.values())
candidates = [
letter for letter, count in letter_counts.items()
if count == max_count
]
return sorted(candidates)[0]
Oct. 28, 2014