What did customers pay on average per unit? Store the average of prices weighted by units, rounded to 2 decimals, in result.
import numpy as np prices = np.array([499, 799, 1299, 2499]) units = np.array([120, 80, 30, 10])
Store your final answer in a variable named result.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.