Division Remainder

Write a function remainder that takes the numbers a and b and returns the remainder of dividing a by b. The divisor b is never 0. The % operator will help — it gives the remainder of a division.

Примеры

Ввод
10, 3
Вывод
1
Ввод
20, 5
Вывод
0
Ввод
17, 4
Вывод
1

Нужно реализовать

def remainder(a: int, b: int) -> int:

Теги

math
PostgreSQLv16

Koodin suorituksen tulos näkyy tässä

Tests12
Visible tests
Piilotettu testi 7
Piilotettu testi 8
Piilotettu testi 9
Piilotettu testi 10
Piilotettu testi 11
Piilotettu testi 12

They run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.

Focus radio
Paused · SomaFM · Fluid