Assignment 6: enforce Python CI before merging #11
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
def total_price(unit_price, quantity):
|
def total_price(unit_price, quantity):
|
||||||
if quantity < 1:
|
if quantity < 1:
|
||||||
raise ValueError("Quantity must be positive")
|
raise ValueError("Quantity must be positive")
|
||||||
return unit_price + quantity
|
return unit_price * quantity
|
||||||
|
|||||||
Reference in New Issue
Block a user