Find the division remainder of a number

you are looking for the modulo operator:

a % b

for example:

>>> 26 % 7
5

Of course, maybe they wanted you to implement it yourself, which wouldn’t be too difficult either.

Leave a Comment