@@ -57,24 +57,28 @@ Create the function `update_recipes(<ideas>, <recipe_updates>)` that takes an "i
5757The function should return the new/updated "ideas" dictionary.
5858
5959``` python
60- >> > update_recipes({' Banana Bread' : {' Banana' : 1 , ' Apple' : 1 , ' Walnuts' : 1 , ' Flour' : 1 , ' Eggs' : 2 , ' Butter' : 1 },
61- ' Raspberry Pie' : {' Raspberry' : 1 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 }},
62- ((' Banana Bread' , {' Banana' : 4 , ' Walnuts' : 2 , ' Flour' : 1 , ' Butter' : 1 , ' Milk' : 2 , ' Eggs' : 3 }),))
60+ >> > update_recipes(
61+ {' Banana Bread' : {' Banana' : 1 , ' Apple' : 1 , ' Walnuts' : 1 , ' Flour' : 1 , ' Eggs' : 2 , ' Butter' : 1 },
62+ ' Raspberry Pie' : {' Raspberry' : 1 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 }},
63+ ((' Banana Bread' , {' Banana' : 4 , ' Walnuts' : 2 , ' Flour' : 1 , ' Butter' : 1 , ' Milk' : 2 , ' Eggs' : 3 }),)
64+ )
6365...
6466
65- {' Banana Bread' : {' Banana' : 4 , ' Apple' : 1 , ' Walnuts' : 2 , ' Flour' : 1 , ' Butter' : 1 , ' Milk' : 2 , ' Eggs' : 3 },
66- ' Raspberry Pie' : {' Raspberry' : 1 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 }}
67-
68- >> > update_recipes({' Banana Bread' : {' Banana' : 1 , ' Apple' : 1 , ' Walnuts' : 1 , ' Flour' : 1 , ' Eggs' : 2 , ' Butter' : 1 },
69- ' Raspberry Pie' : {' Raspberry' : 1 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 },
70- ' Pasta Primavera' : {' Eggs' : 1 , ' Carrots' : 1 , ' Spinach' : 2 , ' Tomatoes' : 3 , ' Parmesan' : 2 , ' Milk' : 1 , ' Onion' : 1 }},
71- [(' Raspberry Pie' , {' Raspberry' : 3 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 , ' Whipped Cream' : 2 }),
72- (' Pasta Primavera' , {' Eggs' : 1 , ' Mixed Veggies' : 2 , ' Parmesan' : 2 , ' Milk' : 1 , ' Spinach' : 1 , ' Bread Crumbs' : 1 }),
73- (' Blueberry Crumble' , {' Blueberries' : 2 , ' Whipped Creme' : 2 , ' Granola Topping' : 2 , ' Yogurt' : 3 })])
67+ {' Banana Bread' : {' Banana' : 4 , ' Walnuts' : 2 , ' Flour' : 1 , ' Butter' : 1 , ' Milk' : 2 , ' Eggs' : 3 },
68+ ' Raspberry Pie' : {' Raspberry' : 1 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 }}
69+
70+ >> > update_recipes(
71+ {' Banana Bread' : {' Banana' : 1 , ' Apple' : 1 , ' Walnuts' : 1 , ' Flour' : 1 , ' Eggs' : 2 , ' Butter' : 1 },
72+ ' Raspberry Pie' : {' Raspberry' : 1 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 },
73+ ' Pasta Primavera' : {' Eggs' : 1 , ' Carrots' : 1 , ' Spinach' : 2 , ' Tomatoes' : 3 , ' Parmesan' : 2 , ' Milk' : 1 , ' Onion' : 1 }},
74+ [(' Raspberry Pie' , {' Raspberry' : 3 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 , ' Whipped Cream' : 2 }),
75+ (' Pasta Primavera' , {' Eggs' : 1 , ' Mixed Veggies' : 2 , ' Parmesan' : 2 , ' Milk' : 1 , ' Spinach' : 1 , ' Bread Crumbs' : 1 }),
76+ (' Blueberry Crumble' , {' Blueberries' : 2 , ' Whipped Creme' : 2 , ' Granola Topping' : 2 , ' Yogurt' : 3 })]
77+ )
7478...
7579
76- {' Banana Bread' : {' Banana' : 1 , ' Apple' : 1 , ' Walnuts' : 1 , ' Flour' : 1 , ' Eggs' : 2 , ' Butter' : 1 },
77- ' Raspberry Pie' : {' Raspberry' : 3 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 , ' Whipped Cream' : 2 },
80+ {' Banana Bread' : {' Banana' : 1 , ' Apple' : 1 , ' Walnuts' : 1 , ' Flour' : 1 , ' Eggs' : 2 , ' Butter' : 1 },
81+ ' Raspberry Pie' : {' Raspberry' : 3 , ' Orange' : 1 , ' Pie Crust' : 1 , ' Cream Custard' : 1 , ' Whipped Cream' : 2 },
7882 ' Pasta Primavera' : {' Eggs' : 1 , ' Mixed Veggies' : 2 , ' Parmesan' : 2 , ' Milk' : 1 , ' Spinach' : 1 , ' Bread Crumbs' : 1 },
7983 ' Blueberry Crumble' : {' Blueberries' : 2 , ' Whipped Creme' : 2 , ' Granola Topping' : 2 , ' Yogurt' : 3 }}
8084```
0 commit comments