Python time.sleep() Method
The sleep() method suspends execution for the given number of
seconds.
Syntax
time.sleep(seconds)
Parameters
| Parameter | Description |
|---|---|
seconds |
Required. The number of seconds to sleep. |
Return Value
None.
Example
Using the sleep() method:
Output
Click Run to execute your code
Enjoying these tutorials?