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