Easy python solution
\ndef maxPower(self, s: str) -> int:\n        c,ans = 1,1\n        for i in range(len(s)-1):\n            if s[i]==s[i+1]:\n                c+=1\n              
```\ndef maxPower(self, s: str) -> int:\n        c,ans = 1,1\n        for i in range(len(s)-1):\n            if s[i]==s[i+1]:\n                c+=1\n                ans=max(c,ans)\n            else:\n                c=1\n        return ans\n```
['Python', 'Python3']