Калькулятор: функция остатка от деления modulo(a, b) #53
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#53
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функциюmodulo(a, b), возвращающую остаток от деленияaнаb, в стиле остальных функций модуля: аннотацииNumber, докстринг на русском. Приb == 0—ZeroDivisionError, как у деления.Добавить в
test_calculator.pyтесты наmodulo:modulo(7, 3) == 1,modulo(-7, 3) == 2,modulo(7, 0)бросаетZeroDivisionError.