Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for The Most Wanted Letter by sebastian.okseniuk
def checkio(text):
text = text.lower()
print(text)
most = text[0]
count = 0
for char in text:
if char.isalpha():
if text.count(char) > count:
most = char
count = text.count(char)
elif text.count(char) == count:
if char < most:
most = char
count = text.count(char)
print(most)
return most
checkio("Hello World!") == "l", "Hello test"
checkio("How do you do?") == "o", "O is most wanted"
checkio("One") == "e", "All letter only once."
Dec. 3, 2015