0
Why I can't use the PERIODIC module on sololearn?
I want to know why I cannot use the PERIODIC module on Sololearn and what should I do to use it?
3 Answers
0
It isn't built in, you need to install the module, for that use the following command :
import subprocess
subprocess.run(["pip","install","-q","periodictable"])
import periodictable
print(dir(periodictable))
Note: you may get a warning about upgrading pip, so you can either run another command before the above one to upgrade pip or ignore it.
0
Or clearly
from os import system
system('pip install periodictable -q')
**Note** '-q' means silently install a package