Python timer is not working as how I wanted it to work

I tried to make a timer that will print stuff when a variable reaches 2502 but instead of doing it at a certain time it just prints is all at once and I can’t figure out how to fix it.

n1 = str(",..")
n2 = str(".,.")
n3 = str("..,")
print(n1)
timer = 2
while timer < 2502:
    timer += 1
if timer == int("2502"):
    print(n2)
timer2 = 2
while timer2 < 2502:
    timer2 += 1
if timer2 == int("2502"):
    print(n3)

Answer

You can insert a time lag in your while loops. (I reduced a bit the time to check the program)

import time  # import the module
n1 = str(",..")
n2 = str(".,.")
n3 = str("..,")
print(n1)
timer = 2
while timer < 10: 
    time.sleep(1) # will do nothing for one second
    timer += 1
if timer == int("10"):
    print(n2)
timer2 = 2
while timer2 < 10:
    time.sleep(1) # will do nothing for one second
    timer2 += 1
if timer2 == int("10"):
    print(n3)