Light Mode
Dark Mode
Feedback from user gitzzz
This code return the error here, but in Python 2.7.6 IDLE it's Ok

import re
from collections import Counter
st=re.compile('[a-zA-Z]')

def checkio(text):
    ns=""
    for i in text:
        if st.match(i): ns+=i
    ns=ns.lower()
    ns=list(ns)
    #sorted(ns)
    d=Counter(sorted(ns)).most_common(1)
    return d[0][0]

URL from: http://www.checkio.org/mission/most-wanted-letter/solve/
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36
  • feedback
Created: May 27, 2014, 4:48 a.m.
Updated: May 27, 2014, 10:06 p.m.
0
4
User avatar
gitzzz