How to iterate through a dictionary to get values on the lowest level?
Advertisements Please help me understand how to extract the value of each ingredient for each product and do something with it. But for starters I just want to print them all one by one. MENU = { "product_1": { "ingredients": { "ingredient_1": 50, "ingredient_2": 18 }, "cost": 1.5 }, "product_2": { "ingredients": { "ingredient_1": 200,… Read More How to iterate through a dictionary to get values on the lowest level?