This seems to shown an example of appending to an array, not adding another value to a dict.
dict_1 = {a: {price: 4000}, b: {price: 14000} }
dict_2 = {a: {discount: 0100}, b: {discount: 0400} }
I would like to merge them to be:
merged_dict: { a: {
price: 4000,
discount: 0100
},
b: {
price: 14000,
discount: 0400
}
}
How to achieve that? Both dictionaries will always have the same keys.