The Love-Letter Mystery

  • + 0 comments

    return sum(abs(ord(s[i]) - ord(s[-i -1])) for i in range(int(len(s) / 2)))