comefrom: <doocs>1991.Find the Middle Index in Array_1.py
code: def findMiddleIndex( nums: List[int]) -> int:
      s = sum(nums)
      total = 0
      for i, num in enumerate(nums):
          total += num
          if total - num == s - total:
              return i
      return -1
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 = sum ( var_0 )
      var_6 = 0
      for var_8 , var_9 in enumerate ( var_0 ) :
          var_6 += var_9
          if var_6 - var_9 == var_4 - var_6 :
              return var_8
      return - 1
  