Remainder (modulus) operator: x % y gives the remainder of x divided by y : modulus « Operator « Python Tutorial






print 1 % 2 
print 10 / 3 
print 10 % 3 
print 9 / 3 
print 9 % 3 
print 2.75 % 0.5








4.7.modulus
4.7.1.Remainder (modulus) operator: x % y gives the remainder of x divided by y