Is there a modulo function in the python `math`

library?

Isn't `15 % 4`

, 3? But `15 mod 4`

is 1, right?

There's the `%`

sign. It's not just for the remainder, it is the modulo operation.

Licensed under: CC-BY-SA with attribution

Not affiliated with: Stack Overflow