Web Analytics

Python time.sleep() Method

Date & Time โ€ข Sleep

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

Related Functions