importing modules | Sololearn: Learn to code for FREE!

0

importing modules

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

7 Answers

New Answer

+6

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 :/

+2

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.

+1

How are you doing it? Should be something like this: import module_name https://www.sololearn.com/learn/Python/2438/

+1

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

0

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

0

Diego Acero I'm writing from time import sleep