Light Mode
Dark Mode
Feedback from user bartschuijt
Hello Checkio team,

I've issues running a script:

###
import re
from collections import Counter

def checkio(text):
    s = re.findall(r'\w', text.lower())
    s = Counter(s).most_common()
    s = sorted(s, key=lambda x:(-x[1],x[0]))
    s = s.pop(0)
    print(str(s[0]))
###

This works fine in text editor Sublime, but in the CheckIO it gives an error "inconsistent use of tabs and spaces in indentation, line 8".

Maybe I don't understand the environment completely, but to me it seems like a bug.

Best,

Bart

URL from: http://www.checkio.org/mission/most-wanted-letter/solve/
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
  • feedback
Created: June 2, 2014, 9:18 p.m.
Updated: June 4, 2014, 7:43 a.m.
0
7
User avatar
bartschuijt