Light Mode
Dark Mode
What`s wrong?

What`s wrong? I started my program local and it`s worked. def checkio(text): text = text.lower() d = {} for ch in text: if ch.isalpha(): if ch in d.keys(): d[ch] += 1 else: d[ch] = 1 tempvalue = 0 tempkey = 'a' for k, v in d.items(): if v > tempvalue: tempvalue = v result = k if v == tempvalue and k < tempkey: tempvalue = v tempkey = k result = k #replace this for solution return result but in web it says, for example "your result 'o' - must be 'm'". It is right, BUT my program return 'm'.

Created: March 2, 2015, 7 a.m.
Updated: March 2, 2015, 10:33 a.m.
0
8
User avatar
AlexanderKamenev