Can we import third party modules in python in Sololearn.If yes how do we do it....? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

Can we import third party modules in python in Sololearn.If yes how do we do it....?

Python

18th Aug 2020, 3:55 AM
Otieno Ian
Otieno Ian - avatar
1 Respuesta
+ 7
Yes you can install third party module in sololearn -: Simply write the code def install(m): import os os.system("pip install -q "+m) install("requests") import requests x=requests.get("https://www.sololearn.com") print(x)
18th Aug 2020, 4:09 AM
Akash Agrawal
Akash Agrawal - avatar