Files
samahk13 84a44f0477
Scrap-Web/pipeline/pr-main This commit looks good
Scrap-Web/pipeline/head This commit looks good
Fix total_price: restore multiplication (#11)
2026-10-23 23:06:39 -04:00

9 lines
307 B
Python

"""Pricing helper for the Scrap-Web CI pipeline (SSW 590, Jenkins assignment)."""
def total_price(unit_price, quantity):
"""Return the total price for `quantity` items at `unit_price` each."""
if quantity < 1:
raise ValueError("Quantity must be positive")
return unit_price * quantity