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
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