Добавить функцию average в калькулятор #55
Labels
No labels
agent:claim
agent:no-op
architecture
backlog
baton
status:observing
status:review
status:review-failed
status:review-passed
status:reviewing
status:waiting-research
type:bug
type:chore
type:docs
type:epic
type:feature
type:refactor
type:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
senokosov/baton-dogfood#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
В
calculator.pyдобавить функциюaverage(values: list[Number]) -> float— среднее арифметическое списка чисел. Для пустого списка —ValueErrorс понятным сообщением на русском.Добавить тесты в
test_calculator.py: обычный список, один элемент, пустой список (ожидаетсяValueError).Acceptance
averageесть вcalculator.py, стиль и докстринг как у соседних функций.