Get Multiples of 10 in BGE Python

I am working on making an infinite terrain generator for the bge. However, I need to get multiples of 10 in the script (I have an empty get the distance between the player and the center of the scene). I need it so that when the distance between the player and the center of the scene is a multiple of 10, a message actuator is activated. How can I get multiples of 10?

Maybe



for x in range(1000):
    if x % 10 == 0:
        print(x)