Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python def inventory_stock(ingredients_list): Question 5 Your local Chick-fil-A restaurant has a shipment of ingredients coming in. Being the inspiring programmer you are, you want to
Python
def inventory_stock(ingredients_list): Question 5 Your local Chick-fil-A restaurant has a shipment of ingredients coming in. Being the inspiring programmer you are, you want to help list inventory while classifying each ingredient into categories. There are 3 categories you want to classify ingredients into: 1. Greens 2. Meat 3. Seasoning Return a dictionary that keeps track of the number of ingredients that fall under each category ("Greens", "Meats", "Seasonings") for each ingredient listed within ingredients_list'. You may assume there will be at least 1 ingredient listed for each category. The category will always be included in the ingredient name. = >>> ingredients_list ["Lettuce Greens", "Chicken Meat", "Bacon Meat", "Romaine Greens", "Red Cabbage Greens", "Sea Salt Seasoning", "Lemon Garlic Seasoning"] >>> stock inventory_stock(ingredients_list) >>> stock {'Greens': 3, 'Meat': 2, 'Seasoning': 2} =Step by Step Solution
There are 3 Steps involved in it
Step: 1
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