✅Python🔥Easy Solution🔥 Pairwise Function🔥
Code\n\nclass Solution:\n    def pairwise(self, iterable):\n        a, b = tee(iterable)\n        next(b, None)\n        return zip(a, b)\n    \n    def scoreOf
# Code\n```\nclass Solution:\n    def pairwise(self, iterable):\n        a, b = tee(iterable)\n        next(b, None)\n        return zip(a, b)\n    \n    def scoreOfString(self, s: str) -> int:\n        absdiff = lambda x: abs(ord(x[0]) - ord(x[1]))\n        return sum(map(absdiff, self.pairwise(s)))\n```
['Python3']