Python3 short solution - Consecutive Characters
\nclass Solution:\n    def maxPower(self, s: str) -> int:\n        ans, i = 1, 0\n        for j in range(1, len(s)):\n            if s[j] == s[i]:\n            
```\nclass Solution:\n    def maxPower(self, s: str) -> int:\n        ans, i = 1, 0\n        for j in range(1, len(s)):\n            if s[j] == s[i]:\n                ans = max(ans, j-i+1)\n            else:\n                i = j\n        return ans      \n```
['Python', 'Python3']