input: Write a function to calculate the result for each object in a list of objects where each object contains an ID and a list of inputs. The result for each object should include the object's ID and the sum of its inputs. The output should be a list of dictionaries, each containing an object's ID and the calculated result. The function should handle an empty list by returning an empty 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": [5,5,5]}, {"id": 4, "inputs": [1,1,1]}]) == [{'id': 3, 'result': 15}, {'id': 4, 'result': 3}]
  assert calculate_result([{"id": 5, "inputs": []}, {"id": 6, "inputs": []}]) == [{'id': 5, 'result': 0}, {'id': 6, 'result': 0}]
  assert calculate_result([]) == []
  assert calculate_result([{"id": 7, "inputs": [10]}]) == [{'id': 7, 'result': 10}]
output: def calculate_result(objects):
      return [{'id': obj['id'], 'result': sum(obj['inputs'])} for obj in objects]