Files
startup-product/pricing.py
sespinal ed8684a289
startup-product-ci/pipeline/pr-main This commit looks good
startup-product-ci/pipeline/head This commit looks good
Fix pricing multiplication and document clean CI run for issue #8
2026-10-21 23:11:38 +00:00

5 lines
147 B
Python

def total_price(unit_price, quantity):
if quantity < 1:
raise ValueError("Quantity must be positive")
return unit_price * quantity