Write cart_total(cart) where cart maps item → [qty, price]. Return the total cost.
cart_total(cart)
cart
[qty, price]
cart_total({'pen': [3, 10], 'book': [1, 250]}) → 280
cart_total({}) → 0
Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.