8 Commits

Author SHA1 Message Date
samahk13 84a44f0477 Fix total_price: restore multiplication (#11)
Scrap-Web/pipeline/pr-main This commit looks good
Scrap-Web/pipeline/head This commit looks good
2026-10-23 23:06:39 -04:00
samahk13 a5180ad781 Demonstrate failing CI check: use addition in total_price (#N)
Scrap-Web/pipeline/pr-main There was a failure building this commit
2026-10-23 23:04:14 -04:00
samahk13 8ba340e32f Remove stray files from CI pull request; manual chapter moves to its own PR (#11)
Scrap-Web/pipeline/pr-main This commit looks good
2026-10-23 23:01:57 -04:00
samahk13 c5538a84d1 Merge main into feature/issue-11, keeping the tested Jenkinsfile (#11)
Scrap-Web/pipeline/pr-main This commit looks good
2026-10-23 22:52:52 -04:00
samahk13 81c343ddb6 Fix total_price: restore multiplication (#11)
Scrap-Web/pipeline/pr-main This commit looks good
2026-10-23 22:41:45 -04:00
samahk13 091a9a9695 Update repository with local changes 2026-10-23 22:36:04 -04:00
kholmes fa22a0d512 Merge pull request 'Added Jenkinsfile for build automation' (#15) from kholmes-patch-2 into main
Scrap-Web/pipeline/head There was a failure building this commit
Reviewed-on: #15
2026-10-24 01:19:22 +00:00
kholmes b779817f2c Added Jenkinsfile for build automation
Scrap-Web/pipeline/pr-main There was a failure building this commit
Scrap-Web/pipeline/head There was a failure building this commit
2026-10-24 01:18:17 +00:00
+1 -1
View File
@@ -5,4 +5,4 @@ def total_price(unit_price, quantity):
"""Return the total price for `quantity` items at `unit_price` each.""" """Return the total price for `quantity` items at `unit_price` each."""
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