importing modules | Sololearn: Learn to code for FREE!


importing modules

why I can't import any module in SoloLearn interpreter? (I'm coding in Python)

7 Answers

New Answer


Rewa Mathur sleep doesn't really work in the code playground - any time over 3 or 4 seconds times out (on my phone anyway) and "Sleeping..." and "Awake!" print at the same time :/


I don't think Sololearn supports the sleep function. Perhaps, if you have a Python environment, it will work there. I've used it with Anaconda.


How are you doing it? Should be something like this: import module_name


Jay Matthews I wish to import random and randint also from random import randint


What module are you trying to import? Maybe SL doesn't support it.


Diego Acero I'm writing from time import sleep