Question: Create an Ingredient class in Python. The design of the class is totally up to you. Write the necessary functions for the class. Write a
Create an Ingredient class in Python. The design of the class is totally up to you. Write the necessary functions for the class.
Write a function that calculates the cost of the shopping list. Write a function that applies discounts on the shopping list.
Write a function that checks whether the recipe given can be cooked with the ingredients in the fridge.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
