This question already has answers here: How do I get my Python program to sleep for 50 milliseconds? (6 answers) Closed 1 year ago. I would like to know how to put a time delay in a Python script. import time time.sleep(5) # Delays for 5 seconds. You can also use a float value. Here is another example where something is run approximately once a minute: import time while True: print("This prints ..