0

How can i make print wait a certain time

Okay, hello everyone! I wanted to know if i can make a print wait a certain amount of time before getting printed in the screen. I'm making something like a chat and i need help!

2nd Jun 2019, 2:26 PM
Miguel Ángel Niño Niubó
Miguel Ángel Niño Niubó - avatar
3 ответов
+ 5
If you want to simulate a chat, look into asynchronous programming. It's less difficult than it sounds. You can make one function that takes user input and another function that literally waits for that input and processes it
2nd Jun 2019, 4:16 PM
Anna
Anna - avatar
+ 3
Waiting in python seems to be somehow inactive in SoloLearn app but generally in python this is how you do it: from time import sleep time.sleep(3) >>>this will wait 3 seconds<<<
2nd Jun 2019, 2:29 PM
Mo Hani
Mo Hani - avatar
+ 1
Thanks you solved my question! :D
2nd Jun 2019, 2:47 PM
Miguel Ángel Niño Niubó
Miguel Ángel Niño Niubó - avatar