comefrom: <doocs>1446.Consecutive Characters_1.py
code: def maxPower( s: str) -> int:
      ans = t = 0
      for i, c in enumerate(s):
          if i == 0 or c == s[i - 1]:
              t += 1
          else:
              t = 1
          ans = max(ans, t)
      return ans
masked: def sample_funcname ( var_0 : str ) -> int :
      var_5 = var_3 = 0
      for var_7 , var_8 in enumerate ( var_0 ) :
          if var_7 == 0 or var_8 == var_0 [ var_7 - 1 ] :
              var_3 += 1
          else :
              var_3 = 1
          var_5 = max ( var_5 , var_3 )
      return var_5
  