• Not everything work. 10 times I changed approach)

Question related to mission The Most Wanted Letter

 

import re from collections import Counter

def checkio(text: str) -> str:

count = Counter(re.findall("[a-z]", text.lower()))
maxmm = max(count, key=count.get)
return maxmm