Back to lesson

git-practice/cart.py

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

def calc(item):
    if item["type"] == "book":
        return item["price"] * 0.90
    return item["price"]