from cart import calc

assert calc({"type": "book", "price": 100}) == 90
assert calc({"type": "other", "price": 100}) == 100
