About
Modulo returns the remainder left over by integer division.
5 % 2 = 1
because 2 goes into 5 evenly two times, with 1 left over.
10 % 5 = 0
113 % 100 = 13
Example
Is even
Is an integer even ?
if (MyVariable % 2 == 0):
print "Even"
else:
print "Odd"