input: Write a python function to calculate the sum of inputs for each object in a list of dictionaries, where each dictionary contains an 'id' and 'inputs' list. Return a list of dictionaries with 'id' and 'result'.
  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": [0,0,0]}, {"id": 4, "inputs": [1,1,1]}]) == [{'id': 3, 'result': 0}, {'id': 4, 'result': 3}]
  assert calculate_result([{"id": 5, "inputs": [10,20,30]}, {"id": 6, "inputs": [5,10,15]}]) == [{'id': 5, 'result': 60}, {'id': 6, 'result': 30}]
output: def calculate_result(list_of_dicts):
      result = []
      for item in list_of_dicts:
          result.append({'id': item['id'], 'result': sum(item['inputs'])})
      return result