Scenario
Recipe Ingredient Scaler
๐ Context
You have a recipe that serves 4 people with specific ingredient amounts. You need to scale it for different party sizes using broadcasting โ exactly how NumPy shines in everyday calculations.
1
2
Step 1: Base Recipe
๐ฏ Task
Create base_recipe with ingredient amounts for 4 servings (in grams):[200, 150, 100, 50, 30, 10]
(flour, sugar, butter, eggs_g, salt, vanilla). Print it.
np.array([200, 150, 100, 50, 30, 10])
โโ run ยท โโ โ nav
โถ Output
Run your code to see output here.