How to use the module pygame while coding in the sololearn app? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to use the module pygame while coding in the sololearn app?

I used pygame as normally i.e. import pygame but it says no module found how to import it for eg. refer the code below. import pygame print (pygame.init()) # the output is normally a tuple consisting of no.of process done and no.of errors for eg. output : (6,0) 6 is no. of process 0 is no. of errors but while using it in the sololearns code playground it gives no output saying no module named pygame found.

27th Jul 2017, 2:49 PM
Akash Khamkar
Akash Khamkar - avatar
2 Answers
+ 2
The SoloLearn compiler is built to be lightweight, meaning that it wouldn't come with the capability of using the PyGame library. You'd have to use another compiler that isn't so lightweight.
27th Jul 2017, 3:00 PM
Keto Z
Keto Z - avatar
+ 1
ok thanks
27th Jul 2017, 3:00 PM
Akash Khamkar
Akash Khamkar - avatar