Question: Please design a python program that takes in a dictionary list of prices for articles and computes the average price for each item. The output

Please design a python program that takes in a dictionary list of prices for articles and computes the average price for each item. The output should be of type dictionary. For example, given:

dict1: dict[str, float] = {"Apple": 2.75, "Pear": 1.50, "Orange": 3.90} dict2: dict[str, float] = {"Apple": 2.50, "Pear": 1.75, "Orange": 3.95} dict3: dict[str, float] = {"Apple": 2.25, "Orange": 3.80}

input list = [dict1, dict2, dict3]

the output should be: {"Apple": 2.50, "Pear": 1.63, "Orange": 3.88}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!