The Love-Letter Mystery

  • + 0 comments
    def theLoveLetterMystery(s):
        move=0
        for i in range(len(s)//2):
            move+=abs(ord(s[i])-ord(s[-i-1]))
        return move