Timer is a method available with Threading, and it helps to get the same functionality as Python time sleep.
from threading import Timer print('Code Execution Started') def display(): print('Welcome to Guru99 Tutorials') t = Timer(5, display) t.start()