Tags
python
Asked 3 years ago
16 Aug 2021
Views 460
Jayson

Jayson posted

What is delay in Python ?

What is delay in Python?
jagdish

jagdish
answered Aug 16 '21 00:00

delay in Python is like sleep code execution in seconds or minutes or hours as per need.
so it means the script stops execution at one point where the sleep function is used for given seconds.

how to delay in Python ?

sleep(t)
t is the time in seconds
sleep(15) // it will delay 15 seconds execution .


import time 
time.sleep(14) 

time.sleep(14) // sleep is used here for the 14 second delay
Post Answer