input: Write a function to take a list of objects, each containing an ID and a list of inputs, and return a list of results. Each result should include the object's ID and the calculated result, which in this case is the sum of the inputs. The function should return the updated list of objects with their respective results.
  
  def calculate_result(obj_list):
   result_list = []
  
   for obj in obj_list:
    result = {}
    result['id'] = obj['id']
    result['result'] = sum(obj['inputs'])
  
   result_list.append(result)
  
  return result_list
  
  assert calculate_result([{"id": 1, "inputs": [1,2,3]}, {"id": 2, "inputs": [2,3,4]}])==[{'id': 1, 'result': 6}, {'id': 2, 'result': 9}]
output: def calculate_result(obj_list):
      result_list = []
      for obj in obj_list:
          result = {}
          result['id'] = obj['id']
          result['result'] = sum(obj['inputs'])
          result_list.append(result)
      return result_list