I am trying to get the sum of duplicated key values in list
tax = [{'taxType': 'T1', 'amount': 140},{'taxType': 'T1', 'amount': 10}]
Expected result
tax = [{'taxType': 'T1', 'amount': 150}]
If T1 is the same key and 150 is the result of sum amount values