Skip to main content

Questions tagged [python-3.x]

Python 3 is the latest version of the Python programming language and was formally released on December 3rd, 2008. Use this tag along with the main python tag to denote programs that are meant to be run on a Python 3 interpreter only. Do not mix this tag with the python-2.x tag.

Filter by
Sorted by
Tagged with
5 votes
2 answers
408 views

Weakly-Referencing Tree Structure in Python

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
261 views

Reading a webpage for its list of sites, but getting only the sites I want

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
120 views

ABC/XYZ business process analysis

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

Simple mutation simulation for use in science class

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
327 views

Simple Node.js version manager v2

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
161 views

Function to calculate energy where all parameters must be positive

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

Runtime function overloading / dynamic dispatch for Python (2nd revision)

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
1k views

Prime number finder below the limit specified

Is this an optimal solution? I doubt it is. Can someone please critique my code? ...
FirstTimer's user avatar
7 votes
4 answers
961 views

Project Euler #54: class for poker hands

I'm working right now on Project Euler problem 54, and I figured that this was the perfect opportunity to try to work with classes. This is my first time, so I'm sure that there are a lot of style, ...
Brais Romero's user avatar
8 votes
2 answers
956 views

2D block game like Minecraft

I have been working on a 2D block game. I like the progress I am making, but I would like to improve the performance and the overall quality of the code. The code and textures are stored in my GitHub ...
coder's user avatar
  • 235
2 votes
2 answers
81 views

Finding partial match table

I am trying to write code that creates a partial match table given a list. The following seems to produce the correct outputs, but it looks quite clunky to me. In particular, it feels strange to me to ...
Idieh's user avatar
  • 73
3 votes
2 answers
133 views

Running yolov to detect class on many files in-memory accumulate RAM on Google Colab T4 GPU

I have thousands of files and I am detecting with YOLOV some classes on them with my own model file. My files are inside a zip file. I must usually extracting json files which have vector data, then ...
Khaled's user avatar
  • 349
6 votes
2 answers
255 views

(HackerRank) Project Euler+ #250: 250250

Link to problem: linkNumber of solvers: 27 out of 844Solve rate (per person): 3.199%Success rate (over all submissions): 1.78% Project Euler+ on HackerRank is basically supposed to be a generalization ...
CrSb0001's user avatar
  • 619
7 votes
1 answer
104 views

Pygame self-made sprite loader

I just wanted to put this out here and see what people think and potential improvements I could make. I've been learning spritesheets in pygame as I was really scared to use them as I thought they ...
ThisQRequiresASpecialist's user avatar
5 votes
2 answers
1k views

Function overloading / dynamic dispatch for Python

UPDATE: Second revision on separate post. Runtime function overloading / dynamic dispatch for Python (2nd revision) When I first started using Python I had a rough time dealing with some of it's ...
HernanATN's user avatar
  • 369

15 30 50 per page
1
2 3 4 5
357