add delay in while loop python code example Example: how to add delay in python import time time.sleep(3) #3s Delay!