Exercise 2 - solution By hand: - 25 g at 1:16 -> 25 x 16 = 400 g water - 15 g at 1:15 -> 15 x 15 = 225 g water Modified script: def water_for(dose_g, ratio): return dose_g * ratio for name, dose, ratio in [("Filter (1:16)", 25, 16), ("Filter (1:15)", 15, 15)]: water = water_for(dose, ratio) print(f"{name}: {dose} g coffee -> {water:.0f} g water, total {dose + water:.0f} g") Output: Filter (1:16): 25 g coffee -> 400 g water, total 425 g Filter (1:15): 15 g coffee -> 225 g water, total 240 g