input: Write a function to calculate the result for each object in a list, where each object has an id and a list of inputs. The function should output a list of results, where each result includes the object's id and the sum of the inputs. If the given list is empty, the function should return an empty list.
  
  def calculate_result(obj_list):
      if not obj_list:
          return []
  
      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": []}, {"id": 4, "inputs": [10]}]) == [{'id': 3, 'result': 0}, {'id': 4, 'result': 10}]
  assert calculate_result([]) == []
output: def calculate_result(obj_list):
      if not obj_list:
          return []
  
      result_list = []
  
      for obj in obj_list:
          result = {}
          result['id'] = obj['id']
          result['result'] = sum(obj['inputs'])
          result_list.append(result)
  
      return result_list