Ask coding questions

← Back to all posts
Python Time Delay
DeLaChickan

I am trying to make a decision based program in Python language and I want to make it seem like there is a person on the other side. I tried the time.sleep() function but it is not working. Is this a bug(if so, please fix it) or can I use another piece of code that will work? Please, I'm on a time limit.

Voters
Luiz-AlanAlan
JamieStanmore
DeLaChickan
Comments
hotnewtop
mat1

This may be because you forgot to import time or forgot to supply an argument for time.sleep
Here's an example of some code that uses time.sleep:

If this doesn't work, can you please give us a repl link and the exact error you're getting?

Please upvote my comment if it was helpful or useful, thank you!

020012

its just simply not waiting