Can we import third party modules in python in Sololearn.If yes how do we do it....? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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