You are viewing a single comment's thread. Return to all comments →
Python 3
def theLoveLetterMystery(s): total = 0 for i in range(int(len(s)//2)): total += abs(ord(s[i]) - ord(s[-1-i])) return total
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 →
Python 3