how to add delay when sending any event in pthon code example Example: python delay >>> import time >>> time.sleep(3) # Sleep for 3 seconds