Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
for_If_If solution in Uncategorized category for The Most Wanted Letter by pythonist
def checkio(data):
'''Function is returning the most frequent letter in the text'''
low_data = data.lower()
uniq_chars = sorted(set(low_data))
n = 0
for c in uniq_chars:
if c.isalpha():
if low_data.count(c) > n:
letter = c
n = low_data.count(c)
return(letter)
Sept. 23, 2013
Comments: