best approch
def maxPower(self, s: str) -> int:\n        if(len(s)==1):\n            return len(s)\n        count=1\n        list1=[]\n        for i in range (1,len(s)):\n  
def maxPower(self, s: str) -> int:\n        if(len(s)==1):\n            return len(s)\n        count=1\n        list1=[]\n        for i in range (1,len(s)):\n            if(s[i]==s[i-1]):\n                count+=1\n                list1.append(count)\n            else:\n                list1.append(count)\n                count=1\n        return max(list1)
[]