You can use time.sleep(seconds) as per following. The value passed to sleep() function is in second.

Python Delay Example

Let’s create a small script to print current date time every after 5 seconds.

Execute above script on command line. To exit running script press CTRL + C. You will see results something like below