Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for The Most Wanted Letter by 5_oxygen
def checkio(text):
# counter of the most wanted letter
max_symb = 0
# variable for the value of the most wanted letter
this_symb = ""
# don't care about letters' case
# sorting makes the result fit "alphabet priority" condition of the task
text = sorted(text.lower())
for symbol in text:
# if it is letter
if symbol.isalpha():
# if this letter is more wanted
if text.count(symbol) > max_symb:
# then we record it
max_symb = text.count(symbol)
this_symb = symbol
return this_symb
Jan. 10, 2015