Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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 Respostas
+ 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")