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
A = [3, 1, 2, 4] for a in A: print(a % 2)
output:
1 1 0 0