Posted under » Python on 03 July 2024
Use the time library and import sleep
from time import sleep for i in range(100): print(i) sleep(5)
In this example it will print the count i every 5 seconds until it reaches 100 counts.