The sleep method of the time module
The sleep method of the time module stops the operation for the specified number of seconds. In the method parameter, we specify the time in seconds.
Syntax
import time
time.sleep(time in seconds)
Example
Let's pause the execution of the exclamation mark output for 5 seconds:
import time
time.sleep(5)
print('!!!')
The result of the executed code after five seconds:
!!!