Write bill(cart, prices) where cart is {item: quantity} and prices is {item: price}. Return the total cost.
bill({'pen': 2, 'book': 1}, {'pen': 10, 'book': 250})
→ 270bill({}, {'pen': 10})
→ 0Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.