For the update_recipes function in the exercise, the readme says:
The project manager has asked you create a way to edit these “ideas” recipes, since the content team keeps changing around ingredients and quantities.
Create the functionupdate_recipes(<ideas>, <recipe_updates>)
that takes an “ideas” dictionary and an iterable of recipe updates as arguments.
The function should return the new/updated “ideas” dictionary.
In the example input data
ideas: {‘Banana Bread’ : {‘Banana’: 1, ‘Apple’: 1, ‘Walnuts’: 1, ‘Flour’: 1, ‘Eggs’: 2, ‘Butter’: 1}
recipe updates: (‘Banana Bread’, {‘Banana’: 4, ‘Walnuts’: 2, ‘Flour’: 1, ‘Butter’: 1, ‘Milk’: 2, ‘Eggs’: 3})
The tests assert that the result expected does not contain ‘Apple’: 1 and therefore imply that instead of going through the recipe and updating ingredients and quantities like in most of the other exercises, it is expected to just replace the entire recipe with the new recipe.
I got hung up on this because the instructions are vague on exactly what to do but it does say we should edit the recipe, which to me is language that flips it towards the “go through and update quantities by ingredient” instead of “replace the entire recipe”
I think the text needs to be more explicit like
The project manager has asked you create a way to edit this “ideas” recipe collection. They want to replace old versions of a recipe with the new updated recipe.
Create the functionupdate_recipes(<ideas>, <recipe_updates>)
that takes an “ideas” dictionary and an iterable of updated recipes as arguments.
(would probably prompt a rename of the second argument too)