If you need to pause the execution of your Python program, then you can do the following:

Option 1 – Using time.sleep()

1
2
3
4
import time

time_duration = 3.5
time.sleep(time_duration)

Option 2 – Using input()

1
2
name = input("Please enter your name: ")
print("Name:", name)

Option 3 – Using os.system("pause")

1
2
3
import os

os.system("pause")