import time while(True):   print("Prints every 10 seconds")   time.sleep(10)

Read more of this post