• Help me "The Most Wanted Letter"

Question related to mission The Most Wanted Letter


You are given a text, which contains different english letters and punctuation symbols. You should find the most frequent letter in the text. The letter returned must be in lower case. While checking for the most wanted letter, casing does not matter, so for the purpose of your search, "A" == "a". Make sure you do not count punctuation symbols and whitespaces, only letters. If you have two or more letters with the same frequency, then return the letter which comes first in the alphabet. (Ex: we have "b" and "f" as the most frequent, then return "b")

Input: A text for analysis. A string (Unicode).

Output: The most frequent letter in lower case. A string.


checkio("Hello World!") == "l"

checkio("How do you do?") == "o"

checkio("One") == "e"

checkio("Oops!") == "o"

checkio("AAaooo!!!!") == "a"

I don't know how to do this task!!!! o(@@)o