Stock value

stock maps items to quantities and prices maps items to unit prices. Write stock_value(stock, prices) that returns the total value of the stock, counting only items that have a price.

stock_value({"apple": 3, "bread": 2, "gift": 1}, {"apple": 40, "bread": 25})  ->  170
def stock_value(stock, prices):
    ...