← back to unit
Medium
# breaking it down medium
The Garden Watering Plan
Every plant type is thirstier than the last — figure out the water bill and the can-carrying. 🪴
You get the liters each plant type needs and the counts of each type (matching lists), plus your watering can size. Print liters <total> then trips <can refills needed, rounded up>.
Example:
Input: liters = [2, 1, 3], counts = [4, 6, 2], can = 5
Output:
liters 20
trips 4
Total water is 2×4 + 1×6 + 3×2 = 8 + 6 + 6 = 20 liters, and filling a 5-liter can takes 4 trips (20 ÷ 5).
💡 need a hint?
brk-garden-watering.py🔒 given lines are locked — write your code in between
loading...