PYTHON | consecutive-characters
\nclass Solution:\n    def maxPower(self, s: str) -> int:\n        res=1\n        c=1\n        for i in range(len(s)-1):\n            if s[i]==s[i+1]:\n        
```\nclass Solution:\n    def maxPower(self, s: str) -> int:\n        res=1\n        c=1\n        for i in range(len(s)-1):\n            if s[i]==s[i+1]:\n                c=c+1\n            else:\n                res=max(res,c)\n                c=1\n        res=max(res,c)\n        return res\n        \n\t\t```
['Python']