# To delay excusion use the time library
import time
time.sleep(secs)
import os
os.system("pause")
# Don't use os.system("pause"), it is very slow because it needs to create
# an entire shell process. Use this instead:
import getch
def pause():
print("Press any key to continue . . . ")
getch.getch()
from time import sleep as pause
print("Hello")
pause(5)
print("World")
import time
time.sleep(5) # Wacht 5 seconden
import time
time.sleep(amount of seconds you want to pause the script for)
Example :
import time
secondstogo = input("How much seconds do you want to wait? : ")
print(f"waiting {secondstogo} seconds")
time.sleep(secondstogo)