Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 84a44f0477 | |||
| a5180ad781 | |||
| 8ba340e32f | |||
| c5538a84d1 | |||
| 81c343ddb6 | |||
| 091a9a9695 | |||
| fa22a0d512 | |||
| b779817f2c |
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user