I have array of dictionaries with information
[
{"id_1":1, "id_2":2, "item_price":50, "delivery_price":100}
{"id_1":1, "id_2":3, "item_price":200, "delivery_price":100}
{"id_1":1, "id_2":4, "item_price":60, "delivery_price":100}
]
How to add in every dict new element "item_cost" which will be the ratio of "item_price" to "delivery_price"?
I want to get this one
[
{"id_1":1, "id_2":2, "item_price":50, "delivery_price":100, "item_cost":50/100}
{"id_1":1, "id_2":3, "item_price":200, "delivery_price":100, "item_cost":200/100}
{"id_1":1, "id_2":4, "item_price":60, "delivery_price":100,
"item_cost":60/100}
]