Skip to main content

All Questions

Tagged with or
4 votes
2 answers
258 views

I developed two custom UI components with Pygame: a Button widget and a Frame widget. After placing the Button inside the Frame, I encountered an issue with the Button’s collision detection. ...
Hossein TwoK's user avatar
0 votes
0 answers
61 views

I am creating a program to create digital twins of enterprises. I am using the Simpy framework for this purpose. I'm creating a universal system that can model almost any enterprise, but I have a ...
��ндрей Александров's user avatar
3 votes
4 answers
2k views

Context I'm returning to Python development after a break and actively learning AI/ML. As part of my learning journey, I'm building a dozen pet projects to strengthen my skills. This is my first ...
Rustem K's user avatar
6 votes
3 answers
978 views

How do I optimise my code more? The goal is to have my code work with more than 200 moving balls, but that takes forever right now and doesn't look smooth at all. Furthermore, I can't get the sizing ...
Theron_Isengard's user avatar
2 votes
2 answers
113 views

I'm calculating the injectors, and I've added the complete calculation code and tested it using pytest. Can you suggest a better way to structure the code so that I ...
Андрей Александров's user avatar
10 votes
4 answers
1k views

As a personal project to build my portfolio, I've created a simple weather app that displays temperature, precipitation, and wind for any given city. This is my first time building a GUI using ...
Ben A's user avatar
  • 10.8k
5 votes
4 answers
2k views

I'm working on a project that requires me to open CSV files. It must check that the file is open and then return it to main. I've written a function to do so and would like to know how it looks, if ...
JackInDaBeanSock's user avatar
5 votes
2 answers
470 views

For another project of mine, I decided that it would be handy to have a tree structure to dictate hierarchy between pieces of data, but I didn't want to unnecessarily keep that data alive if it would ...
BetterBuiltFool's user avatar
4 votes
2 answers
301 views

Currently, I have this "leave only the urls that don't have unwanted substrings inside" code. I originally tried to use a comprehension to filter the unwanted urls. ...
Malady's user avatar
  • 155
2 votes
1 answer
148 views

I have written a code that deals with ABC/XYZ analysis. I want to use it in my application and would like to find out how the code can be improved, its readability and it will be better to implement ...
dynamic.aerospace.inc's user avatar
12 votes
4 answers
1k views

I've been giving my grade tens an introduction to computational phylogenomics, based around computing dissimilarity between DNA strands, and a simplified model of mutation. They've been exploring how ...
AkselA's user avatar
  • 223
9 votes
2 answers
356 views

As a followup to my previous version, I decided to try make this more cross-platform. I considered several languages: C++ is pretty cross platform, Rust is gaining popularity (and the language used by ...
404 Name Not Found's user avatar
4 votes
3 answers
199 views

I have a function which requires all parameters to be positive: ...
Idieh's user avatar
  • 73
1 vote
0 answers
162 views

Second revision of the original post: Function overloading / dynamic dispatch for Python TL;DR: Improved version of this library[^1] based on previous reviews and criticism. It provides runtime ...
HernanATN's user avatar
  • 369
7 votes
5 answers
2k views

Is this an optimal solution? I doubt it is. Can someone please critique my code? ...
FirstTimer's user avatar

15 30 50 per page
1
2 3 4 5
357