Question: 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
Get step-by-step solutions from verified subject matter experts
