+ 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

10th May 2023, 8:05 AM
Natsuki
Natsuki - avatar
18 Antworten
+ 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
10th May 2023, 12:28 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 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
10th May 2023, 10:50 AM
Lothar
Lothar - avatar
+ 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.
10th May 2023, 8:16 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 6
Lothar edited 👍
10th May 2023, 10:51 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 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
10th May 2023, 9:03 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 4
Thank you guys 👉😀
11th May 2023, 7:14 AM
Natsuki
Natsuki - avatar
+ 3
For pygame you can also use replit. Go to new repl and type pygame sheet. Now you can develop with pygame.
10th May 2023, 9:04 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 3
Jared Ramon Elizan Use replit for that
11th May 2023, 12:12 PM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 2
Yes but for pygame or
10th May 2023, 9:04 AM
Natsuki
Natsuki - avatar
+ 2
Yw
11th May 2023, 7:14 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 2
I think it will work In sololearn desktop version. better to use online interpreter.
11th May 2023, 7:36 AM
Ashish Soni
+ 2
can't also import pygame :(
11th May 2023, 10:18 AM
Jared
Jared - avatar
+ 1
Ok and for import the modules
10th May 2023, 8:57 AM
Natsuki
Natsuki - avatar
+ 1
😢
11th May 2023, 10:18 AM
Natsuki
Natsuki - avatar
+ 1
Ji
11th May 2023, 4:56 PM
Roni Hossain
Roni Hossain - avatar
+ 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.
12th May 2023, 4:43 AM
S3R43o3
S3R43o3 - avatar
+ 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.
12th May 2023, 6:10 AM
Ganesh Charan
Ganesh Charan - avatar
+ 1
Thank everyone for help like this post pls 👉👉👉👉👉👉👉👉
13th May 2023, 10:54 AM
Natsuki
Natsuki - avatar