input: Write a function to calculate the result for each object in a list of objects. Each object contains an ID and a list of input values. The result should be calculated as the sum of the input values. Return a list of dictionaries where each dictionary contains the ID of the object and the calculated result.
  
  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
  
  obj_list = [{"id": 1, "inputs": [1,2,3]},
  {"id": 2, "inputs": [2,3,4]}]
  
  assert calculate_result(obj_list) == [{'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