Add a percentage(value, total) function to the calculator returning value as a percentage of total, raising ValueError when total is zero. Follow the house rules.
Acceptance criteria
The ticket objective is satisfied: Add a percentage function to the calculator
Commits
Commit
Summary
Node
c6ff93c764a8
test(sveta): Write tests for percentage function
7edce3239d43
e11ca4b3761c
feat(nadia): Implement percentage function in calculator.py
baf308443217
Run
Cost: 0.0025 USD · Nodes: 7 · Verification: make verify
## What was built
Add a `percentage(value, total)` function to the calculator returning value as a percentage of total, raising ValueError when total is zero. Follow the house rules.
## Acceptance criteria
- The ticket objective is satisfied: Add a percentage function to the calculator
## Commits
| Commit | Summary | Node |
|---|---|---|
| `c6ff93c764a8` | test(sveta): Write tests for percentage function | `7edce3239d43` |
| `e11ca4b3761c` | feat(nadia): Implement percentage function in calculator.py | `baf308443217` |
## Run
Cost: 0.0025 USD · Nodes: 7 · Verification: make verify
Closes #16
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What was built
Add a
percentage(value, total)function to the calculator returning value as a percentage of total, raising ValueError when total is zero. Follow the house rules.Acceptance criteria
Commits
c6ff93c764a87edce3239d43e11ca4b3761cbaf308443217Run
Cost: 0.0025 USD · Nodes: 7 · Verification: make verify
Closes #16