How to import python library in Sololearn code editor? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How to import python library in Sololearn code editor?

I am trying to import Python library in SL editor but code is not being executed.

29th Jun 2022, 1:10 PM
Jelena🇷🇺
Jelena🇷🇺 - avatar
10 Answers
+ 10
You can import a modul just as usual. If the module is not installed yet, you have to do this before importing: https://code.sololearn.com/ckBJoTlEYWxj/?ref=app
29th Jun 2022, 1:20 PM
Lisa
Lisa - avatar
+ 6
https://code.sololearn.com/c4TvNiOjl3ST/?ref=app no gui libs
29th Jun 2022, 1:20 PM
Slick
Slick - avatar
+ 4
On sololearn playground we cannot use any gui for Python...
29th Jun 2022, 2:21 PM
Lisa
Lisa - avatar
+ 2
29th Jun 2022, 2:47 PM
Mihir Lalwani
Mihir Lalwani - avatar
+ 2
Mihir Lalwani On sololearn playground we cannot "pause" code execution, so sleep() won't work here.
29th Jun 2022, 3:01 PM
Lisa
Lisa - avatar
+ 2
. Try in other editors 👍
1st Jul 2022, 3:14 AM
Angel Arceo
Angel Arceo - avatar
+ 1
I have tried both ways but not working, I am installing pyautogui module.
29th Jun 2022, 2:10 PM
Jelena🇷🇺
Jelena🇷🇺 - avatar
+ 1
Lisa okay
29th Jun 2022, 4:40 PM
Mihir Lalwani
Mihir Lalwani - avatar
+ 1
29th Jun 2022, 4:41 PM
Mihir Lalwani
Mihir Lalwani - avatar
0
I don't know if it's possible
1st Jul 2022, 12:28 AM
Adrian Bagos
Adrian Bagos - avatar