+ 3

Python

Is it possible to import library in python if yes then tell me kindly How to import any library(PYGAME) in my coding playground?

9th Sep 2024, 6:54 PM
Programing Queen
Programing Queen - avatar
9 odpowiedzi
+ 5
I haven't been able to get pygame, tkinter, or matplotlib to work in the code bits area. I do those on my PC instead.
9th Sep 2024, 7:16 PM
Jerry Hobby
Jerry Hobby - avatar
+ 5
Jerry Hobby it means it's not possible 😔
9th Sep 2024, 7:21 PM
Programing Queen
Programing Queen - avatar
+ 3
Yes, you can import library but definitely not playground. If you really want to publish game on here, it has to be a web game. I think pygame has an option to compile to web so you can do just that. For other libraries you can work around with it https://sololearn.com/compiler-playground/cw21aexaI8m7/?ref=app
9th Sep 2024, 8:28 PM
RuntimeTerror
RuntimeTerror - avatar
+ 2
Jerry Hobby matplotlib works here. This can be done in such way as here: https://sololearn.com/compiler-playground/cdhDeZdqSU6G/?ref=app
10th Sep 2024, 7:44 PM
JaScript
JaScript - avatar
+ 1
RuntimeTerror Do you really think that Tkinter is being transferred to the web? I'll tell you that it doesn't transfer to the web. I've been coding on it all my life and have never heard that it can be transferred to the web. He's too old for this bro.
10th Sep 2024, 6:39 AM
Wolf Cub
Wolf Cub - avatar
+ 1
Flask is transferred to the web.
10th Sep 2024, 6:40 AM
Wolf Cub
Wolf Cub - avatar
+ 1
But Tkinter doesn't.
10th Sep 2024, 6:40 AM
Wolf Cub
Wolf Cub - avatar
+ 1
No randint either I dont think
10th Sep 2024, 7:01 AM
Daniel
Daniel - avatar
0
Jerry Hobby i tried pygame too it did not work
11th Sep 2024, 7:31 AM
Fateme Biglari
Fateme Biglari - avatar