Time delay in Python script (sleep)

Python

Time delay in python script

import time
time.sleep(5)   # Time you want to delay for, in seconds (can be float value as well)
print('This message was delayed approx. 5 seconds')
This message was delayed approx. 5 seconds