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 hjozwowiak
def checkio(text):
from collections import Counter
import re
text = re.findall("[a-zA-Z]",text.lower())
myList = (sorted(Counter(text).most_common(), key=lambda text: text[1], reverse = True))
print (myList)
myRange = len(myList)
myArray = []
biggest = myList[0][1]
for i in range(myRange):
print(" ")
print (myList[i][0])
print (myList[i][1])
if (myList[i][1]) == biggest:
myArray.append(myList[i][0])
myArray = sorted(myArray)
return (myArray[0])
Nov. 18, 2017