Python sleep(一定時間プログラムの実行を停止する)

import time

for i in range(3):
    print(i)
    time.sleep(1)   #1秒停止