Question: Question 3 : shopSmart function Fill in the function shopSmart ( orders , shops ) in shopSmart.py , which takes an orderList ( like the
Question : shopSmart function
Fill in the function shopSmartordersshops 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 passes all tests and you get full marks. Each test will confirm that shopSmartordersshops returns the correct answer given various possible inputs. For example, with the following variable definitions:
orders 'apples', 'oranges',
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
