Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions