This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Given a list of ingredients needed for a recipe, represented as strings, and a list of ingredients you have in your pantry, | |
# write a function to return the minimum number of additional ingredients you need to buy to make the recipe. | |
# If you want to do some extra credit, add expiration dates to the pantry items, and only account for food that isn't expired. | |
# Example: | |
# Input: | |
# recipe = ["eggs", "flour", "sugar", "butter"] |