From 84a44f0477dac51b540d038bf3a94b8f49bec275 Mon Sep 17 00:00:00 2001 From: Samah Keshiro Date: Fri, 23 Oct 2026 23:06:39 -0400 Subject: [PATCH] Fix total_price: restore multiplication (#11) --- pricing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pricing.py b/pricing.py index c6d18b6..32ec2d1 100644 --- a/pricing.py +++ b/pricing.py @@ -5,4 +5,4 @@ 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 + return unit_price * quantity