`time.sleep` not working

Question:
The time.sleep function is not working. It is skipping the call and continuing.


Repl link:
https://replit.com/@element1010/Sun-Moon-Sky-and-Earth#main.py

from time import sleep

...

sleep(3) # not working
1 Like

There are a few reasons why the time.sleep function might not be working as expected. First, you can check to make sure that the function is actually being called by adding a print statement before and after the call. Additionally, it’s possible that there are errors occurring in the code before the sleep function is called, preventing it from running properly. You can also try using a different value for sleep time to see if that makes a difference. If none of these solutions work, you may need to provide more information about your code or environment to help me troubleshoot the issue further.

1 Like

I gave you the Repl link.

Also btw this is a minor issue so it doesn’t really matter whether it gets fixed.

If it is not important, why did you upload the question in the first place?

I don’t really know

I needed the time.sleep call, and it was still a bug. The reason it wasn’t important was it was using the typewriter effect so the user could still read it.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.