Is there a modulo function in the Python math library?
math
Isn't 15 % 4, 3? But 15 mod 4 is 1, right?
15 % 4
15 mod 4
There's the % sign. It's not just for the remainder, it is the modulo operation.
%
1.4m articles
1.4m replys
5 comments
57.0k users