git-practice/check_cart.py
ኮድና የመጀመሪያ የምርት ማያዎች የመጀመሪያ ቋንቋቸውን ይጠብቃሉ። ትምህርቱ በመረጥከው ቋንቋ ያብራራቸዋል።
from cart import calc
assert calc({"type": "book", "price": 100}) == 90
assert calc({"type": "other", "price": 100}) == 100
ኮድና የመጀመሪያ የምርት ማያዎች የመጀመሪያ ቋንቋቸውን ይጠብቃሉ። ትምህርቱ በመረጥከው ቋንቋ ያብራራቸዋል።
from cart import calc
assert calc({"type": "book", "price": 100}) == 90
assert calc({"type": "other", "price": 100}) == 100