• Most wanted letter

I would like to give some feedback about ...

My below code is working fine in my local editor but my test is not completing in checkio. Please see the below code-

def checkio(text): t=text.lower() dct={} for i in t: if(ord(i)>=97 and ord(i)<=122): count=t.count(i) if(count>=1): dct[i]=count

#replace this for solution
return (max(dct,key=dct.get))

From: https://www.checkio.org/mission/most-wanted-letter/solve/


Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0