Back to lesson

git-practice/check_cart.py

Code and original product screens keep their original language. The lesson explains them in your selected language.

from cart import calc

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