A corner shop's scanner only records a product code and a quantity for each line of a basket. The prices live in a separate price list.
Task: write basket_total(basket, prices).
basket is a dictionary of two lists, "code" and "qty", one entry per line. The same code can appear on more than one line.prices is a dictionary of two lists, "code" and "price". Every code in the basket is in the price list, exactly once. The price list may also hold codes that aren't in the basket.qty times its product's price.