Files
myfileagent-pipeline/pricing.py
T
Codex (authorized Assignment 5 implementation) d6477b3df6
myfileagent-python-ci/pipeline/pr-main There was a failure building this commit
Demonstrate failing pricing calculation for issue #10
2026-10-09 19:04:32 +00:00

5 lines
147 B
Python

def total_price(unit_price, quantity):
if quantity < 1:
raise ValueError("Quantity must be positive")
return unit_price + quantity