import time for i in range(50): print(i) time.sleep(0.5)