+ 2
Python module 🤬😡😢🤯
How to import a module in this app it don’t work https://code.sololearn.com/cwf92IMweoB7/?ref=app And why this code don’t work i watch this video https://youtu.be/LXV53NKfKQI
18 Answers
+ 6
Natsuki You can install any package but be careful the sololearn compiler don't import lengthy package
https://code.sololearn.com/ct11TWwj9uAj/?ref=app
hope it's helpful to you
+ 11
Ugulberto Sánchez ,
[edited]
> time module has many functions / methods, where one of them is sleep(). this function can not be used in sololearn playground.
> but the majority of the functions can becused in playground.
link to the python documentation for the time module:
https://docs.python.org/3/library/time.html
+ 9
Sololearn doesn’t allow interactive output, so all the output will be displayed once. So time.sleep() does not work here in sololearn. Try to use it on replit or other IDE like pycharm.
+ 6
Lothar edited 👍
+ 5
Natsuki importing time.sleep is useless in sololearn. Use replit instead. To import modules use import keyword. Example:
import math
or
from math import pi
+ 4
Thank you guys 👉😀
+ 3
For pygame you can also use replit. Go to new repl and type pygame sheet. Now you can develop with pygame.
+ 3
Jared Ramon Elizan Use replit for that
+ 2
Yes but for pygame or
+ 2
Yw
+ 2
I think it will work In sololearn desktop version. better to use online interpreter.
+ 2
can't also import pygame :(
+ 1
Ok and for import the modules
+ 1
😢
+ 1
Ji
+ 1
Well as a main python programmer and hacker which use python on all OS daily for all kind of stuff, i recommend you to install python on your pc and please use environments before install any packages. If you need a quick start instruction you can pm me and iwill help. Also with your pygame problem, I guess you use python 3.11. You also need to know that gui packages wont work on sololearn. Dont worry about complexity , python with his package management system pip is easy to handle and understand and python at all ist not that big install. Replit is a good alternative but it has limitations too like all kind off browsercompiler. Well like i said if you need help pm me.
+ 1
Good job! It will run. But this app didn't have module installment.
You can download an app named Pydroid 3, Pydroid Permission plugin, Pydroid responsibility plugin in your Android.
+ 1
Thank everyone for help
like this post pls 👉👉👉👉👉👉👉👉