Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
About Lesson

Sleep():-

        The sleep() method of time module is used to stop the execution of the script for a given amount of time. The output will be delayed for the number of seconds.

import time

for i in range(0,10):

         print(i)

         time.sleep(2)

 

error: Content is protected !!