Important Notice:
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)