input: Write a function to calculate and output a result for each object in a list of objects. Each result should include the object's ID and the calculated result from its inputs. The inputs are provided as a list of objects, where each object has an 'id' and 'inputs' field, and the result for each object is the sum of its 'inputs'.
  
  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}]
  assert calculate_result([{"id": 3, "inputs": [4,5,6]}, {"id": 4, "inputs": [7,8,9]}]) == [{'id': 3, 'result': 15}, {'id': 4, 'result': 24}]
  assert calculate_result([]) == []
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