Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider an ecommerce site, there are unlimited items and 3 categories (bread, biscuits, chips), the details of the items are saved as (item id,
Consider an ecommerce site, there are unlimited items and 3 categories (bread, biscuits, chips), the details of the items are saved as (item id, item_name, category, color, price, discount, month of purchase). Create a dictionary for the 10 items. Take values such that below questions can give output. a) Define a function that takes the category name from the user, and display the items of that category having red color in sorted order of the discount.(6 M) b) Define a function which creates a random basket of 3 items, one from cach category, selection is made on maximum discount. (6 M) c) Plot the bar chart showing the total purchase of each category month_wisc. (8 M)
Step by Step Solution
★★★★★
3.44 Rating (147 Votes )
There are 3 Steps involved in it
Step: 1
lets break down each part of your request a Define a function that takes the category name from the user and displays the items of that category with ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started