Multiply the matrices to get a 3 × 2 table with each store's total revenue and total cost. Then store [that table, profit of each store] in result.
import numpy as np # rows = 3 stores, columns = 4 products units = np.array([[10, 0, 4, 2], [5, 3, 0, 6], [8, 8, 1, 0]]) # rows = 4 products, columns = [price, cost] money = np.array([[100, 60], [250, 180], [400, 300], [80, 30]])
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.