Добавить функцию median в калькулятор #57
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#57
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добавить функциюmedian(values: list[Number]) -> float— медиана списка чисел (для чётной длины — среднее двух центральных). Для пустого списка —ValueErrorс понятным сообщением на русском.В
test_calculator.pyдобавить тесты: нечётная длина, чётная длина, неотсортированный вход, пустой список (ValueError).