[Python] One line
\nPython:\npy\n    def maxPower(self, s):\n        return max(len(list(b)) for a, b in itertools.groupby(s))\n\n
\n**Python:**\n```py\n    def maxPower(self, s):\n        return max(len(list(b)) for a, b in itertools.groupby(s))\n```\n
[]