Question: Question 3 : shopSmart function Fill in the function shopSmart ( orders , shops ) in shopSmart.py , which takes an orderList ( like the

Question 3: shopSmart function
Fill in the function shopSmart(orders,shops) in
shopSmart.py, which takes an orderList (like the kind passed in to FruitShop.getPriceOfOrder) and a list of FruitShop and returns the FruitShop where your order costs the least amount in total. Don't change the file name or variable names, please. Note that we will provide the
shop.py implementation as a "support" file, so you don't need to submit yours.
Run python
autograder.py until question 3 passes all tests and you get full marks. Each test will confirm that shopSmart(orders,shops) returns the correct answer given various possible inputs. For example, with the following variable definitions:
orders1 'apples', 1.0), 'oranges', 3.0)
 Question 3: shopSmart function Fill in the function shopSmart(orders,shops) in shopSmart.py,

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!