+ 3

Pause my program in Python?

How can I make my program pause for a few seconds between prints? I’m trying to make an interactive story but I’m definitely still learning lol. Thanks! :) -Elijah

18th May 2018, 8:19 PM
Elijah Greg
Elijah Greg - avatar
2 Réponses
+ 18
import time for s in range(5): print(5-s) time.sleep(1) print('Start!')
18th May 2018, 8:55 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
You could make it interactive by this: print("blabla") wait = input("Press Enter to continue.") print("blablabla")
19th May 2018, 1:26 PM
Dick Stada
Dick Stada - avatar