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_1 = sum ( var_0 )
      var_2 = 0
      for var_3 , var_4 in enumerate ( var_0 ) :
          var_2 += var_4
          if var_2 - var_4 == var_1 - var_2 :
              return var_3
      return - 1
  