Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
The most wanted letter solution in Clear category for The Most Wanted Letter by imcapableofanything
import re
def checkio(text):
chars = "".join(re.findall("[a-zA-Z]+", text.lower()))
data = {}
for ch in chars:
if not ch in data:
data[ch] = 1
else:
data[ch] += 1
sorted_data = sorted(data.items(), key=lambda x: (-x[1], x[0]))
for item in sorted_data:
return item[0]
Nov. 12, 2015
Comments: