Find the 'A' products: sort products by revenue (highest first) and keep the products whose running share of total revenue is 80% or less, plus the one that crosses 80%. Store their names (highest first) in result.
import numpy as np products = np.array(["P1", "P2", "P3", "P4", "P5", "P6", "P7", "P8"]) revenue = np.array([12000, 45000, 3000, 8000, 30000, 1500, 600, 20000])
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.