• Difference between website result and local result

I would like to give some feedback about the result I got form website is different with the result I got from SublimeText. I use the following function to solve problem,but the website say the answer is wrong when I get right result in my local SublimeText. Waiting for your replay,thanks!

def checkio(wordsset): for words in wordsset: for word in words_set: if len(words) > len(word): return words.endswith(word) return False

From: http://www.checkio.org/mission/end-of-other/solve/


Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Maxthon/ Chrome/30.0.1599.101 Safari/537.36