input: Write a function to take a list of objects, each containing an ID and a list of numerical inputs, and calculate a result for each object based on the sum of its inputs. The function should return a list of objects containing the ID 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}]
  
  assert calculate_result([{"id": 3, "inputs": [5,5,5]}]) == [{'id': 3, 'result': 15}]
  
  assert calculate_result([{"id": 4, "inputs": [0]}]) == [{'id': 4, 'result': 0}]
  
  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