Skip to main content

Questions tagged [python]

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

3 votes
2 answers
245 views

Project collects football data from external API. ...
Luca's user avatar
  • 109
5 votes
4 answers
418 views

So I wanted to print all submodules of my package today and as usual I googled if someone else shared a way and indeed there was a stackoverflow Q&A. However all of the code in the answers didn't ...
Thingamabobs's user avatar
  • 1,237
-2 votes
0 answers
32 views

I have a Python service that listens to a message stream and, for each inbound message, dispatches an order-placement task to two HTTP brokers in parallel. It worked fine for weeks, then started ...
Krishnaa Kopp's user avatar
7 votes
6 answers
621 views

I've updated the code with most of your suggestions. I choose enum.Enum over dict and stuck to computing the values instead of ...
Thingamabobs's user avatar
  • 1,237
7 votes
6 answers
1k views

I would like a review of my code. It's a very simple code that checks the strength of a password. ...
iShareInspiration's user avatar
7 votes
4 answers
714 views

I've made a little script to convert from roman-numerals to integer. What do you think? ...
Thingamabobs's user avatar
  • 1,237
6 votes
3 answers
400 views

I've heard y'all and tried my best to work in all of the suggestions. There are a few upgrades. With your help I was able to cut the time for round_trip to 1/5. (...
Thingamabobs's user avatar
  • 1,237
8 votes
5 answers
740 views

The code below implements the memento-pattern and is demonstrated on a fibonacci-sequence. So far, nothing special. However, while I was writing the code I thought some utilities will be nice. After I ...
Thingamabobs's user avatar
  • 1,237
4 votes
4 answers
379 views

I was making a program that created several words in a list, and this made me think about trying to create a function that takes the closest words to a certain target, returning all the correct ...
Unknown's user avatar
  • 155
14 votes
9 answers
2k views

I wrote a small Python script that asks the user for an hour (0–23) and determines whether it is morning, afternoon or night. I used a dictionary where the values are tuples representing hour ranges. ...
Blindbandid's user avatar
7 votes
5 answers
382 views

A tween is a transition of a variable from one value to another value gradually over time using some sort of easing function. I could not really find a library for easily creating tweens in Pygame so ...
Dair's user avatar
  • 6,322
4 votes
2 answers
225 views

If I can just get a review on my views for the farrier management system. I greatly appreciate any feedback and let me know if I am following best practices and industry standards. ...
Krakos's user avatar
  • 117
5 votes
3 answers
323 views

I am writing my own add-on for SimPy to simulate the operation of enterprises. I have identified two types of entities: Bulk (...
Андрей Александров's user avatar
4 votes
3 answers
246 views

Relationship Logic: Is using PROTECT on Client and SET_NULL on ...
Krakos's user avatar
  • 117
1 vote
4 answers
233 views

I've been studying Python for about a month and I'm focusing on back-end development. I've developed a simple program with a menu that includes a calculator and a guessing game. I would appreciate ...
Gxxdevv's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
1046