Using the Math module, we can retrieve the remainder of two numbers.
For example, the following would return 0.
import math re = math.remainder(6, 3))