Demonstrate failing pricing calculation for issue #10
myfileagent-python-ci/pipeline/pr-main There was a failure building this commit

This commit is contained in:
Codex (authorized Assignment 5 implementation)
2026-10-09 19:04:32 +00:00
parent ad056a363c
commit d6477b3df6
+1 -1
View File
@@ -1,4 +1,4 @@
def total_price(unit_price, quantity):
if quantity < 1:
raise ValueError("Quantity must be positive")
return unit_price * quantity
return unit_price + quantity