+ 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
2 ответов
+ 18
import time
for s in range(5):
print(5-s)
time.sleep(1)
print('Start!')
+ 2
You could make it interactive by this:
print("blabla")
wait = input("Press Enter to continue.")
print("blablabla")