comefrom: <doocs>1758.Minimum Changes To Make Alternating Binary String_1.py
code: def minOperations( s: str) -> int:
      cnt = 0
      for i, c in enumerate(s):
          cnt += c == '01'[i & 1]
      return min(cnt, len(s) - cnt)
masked: def sample_funcname ( var_0 : str ) -> int :
      var_4 = 0
      for var_6 , var_7 in enumerate ( var_0 ) :
          var_4 += var_7 == '01' [ var_6 & 1 ]
      return min ( var_4 , len ( var_0 ) - var_4 )
  