ModuleNotFoundError: No module named 'time.sleep'; 'time' is not a package
This is the error I get when I type import time.sleep as sleep
using 3.7.0a IDLE. Not sure about the as sleep
part, but the import time.sleep
seems to be broken or something like that. I tried the same thing with import time
as well, got the same result. Could someone please explain?
Edit: I was told that I should try 'import time' first and then 'time.sleep', but as >I said before:
I tried the same thing with 'import time' as well...
that does not work either. And another suggestion was that maybe I had >another file named time.py, and that it confused the programme. But as far as I >know (from a full search through my computer), I do not have another time.py >file that might be the cause. Any other suggestions please?