You are viewing a single comment's thread. Return to all comments →
one line with lambda
s = raw_input() print sum(map(lambda x: abs(ord(s[x]) - ord(s[len(s) - x - 1])), range(len(s)/2)))
Seems like cookies are disabled on this browser, please enable them to open this website
The Love-Letter Mystery
You are viewing a single comment's thread. Return to all comments →
one line with lambda