Is there a modulo function in the python math library?
Isn't 15 % 4, 3? But 15 mod 4 is 1, right?
You can use the modulo operator(%), it gives you the remainder as well as the modulo.
See the example below:-
15 % 4
To know more about this you can have a look at the following video:-