comefrom: <garvit244>985_1.py
code: def sumEvenAfterQueries( A, queries):
      result = 0
      for val in A:
          if val%2 == 0:
              result += val
      
      f_result = []
      for val_index in queries:
          val, index = val_index[0], val_index[1]
          prev_val = A[index]
          if prev_val%2 == 0:
              result -= prev_val
          new_val = prev_val + val
          if new_val %2 == 0:
              result += new_val
          A[index] = new_val
          f_result.append(result)
      return f_result
masked: def sample_funcname ( var_0 , var_1 ) :
      var_3 = 0
      for var_4 in var_0 :
          if var_4 % 2 == 0 :
              var_3 += var_4
      var_6 = [ ]
      for var_7 in var_1 :
          var_4 , var_9 = var_7 [ 0 ] , var_7 [ 1 ]
          var_10 = var_0 [ var_9 ]
          if var_10 % 2 == 0 :
              var_3 -= var_10
          var_11 = var_10 + var_4
          if var_11 % 2 == 0 :
              var_3 += var_11
          var_0 [ var_9 ] = var_11
          var_6.append ( var_3 )
      return var_6
  