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_2 = var_1 = 0
      for var_3 , var_4 in enumerate ( var_0 ) :
          if var_3 == 0 or var_4 == var_0 [ var_3 - 1 ] :
              var_1 += 1
          else :
              var_1 = 1
          var_2 = max ( var_2 , var_1 )
      return var_2
  