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.
15,661 questions
4
votes
4
answers
593
views
Sort chef's ingredients, grouped by supplier
I wrote a program that helps chefs with sorting ingredients and grouping each of them to the supplier they belong. This program is for French users. I would like a review, and I'm very open for ...
7
votes
3
answers
780
views
File Carving Utility
I’ve written a small tool to extract files from disk images using hex signatures from a YAML config. It works, and I’m using it for my current tasks, but since I’m new to Python, I want to know how &...
4
votes
1
answer
202
views
YouTube video metadata and transcript extractor using Python standard library
I wrote a Python script that takes a YouTube URL, fetches the video's metadata and its subtitles transcript via YouTube's internal youtubei/v1/player API.
The script uses only the standard library. It'...
14
votes
9
answers
2k
views
Determine whether it is morning, afternoon or night
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.
...
6
votes
3
answers
453
views
Tkinter - Demonstration of the Graham-Scan (Convex hull)
I found an very old project of mine with an issue that I solved today (first and last lines were not drawn).
It demonstrates the Graham-Scan
However, I noticed I didn't document anything, and I ...
14
votes
3
answers
959
views
Arbitrary precision calculator for π in Python using only integer arithmetic
Yesterday was π-day (or today is π-day depending on your timezone). Anyway I spent the past month or so implementing trigonometric functions using only integer arithmetic, and I have implemented five ...
6
votes
4
answers
869
views
SAT Solver Using Rubik's Cube
I have a code in Python for Google Colab (.IPYNB) that reduces SAT problems to instances of a Generalized Rubik's Cube and solves them in polynomial time. Currently, the solver’s worst-case complexity ...
7
votes
3
answers
404
views
Address Book project using MVC with Tkinter
I have developed a project "Address Book" in Python with Tkinter and SQLite using the MVC architecture.
The project allows:
adding, modifying, deleting and looking up contacts
listing all ...
8
votes
4
answers
281
views
Convert OpenAPI Response Schema to PySpark DataFrame Schema
Introduction
I have created a small script designed to do the following:
Download/read an OpenAPI json document
Given a specific endpoint, convert the ...
3
votes
2
answers
153
views
War of dots (client): A simple RTS war game in python
Follow up question for War of dots: simple RTS war game in python. Code here, extra stuff here (screenshots, profiles, documentation). Server is being reviewed here.
What's changed?
Since last code ...
7
votes
3
answers
850
views
War of dots (server): A simple RTS war game in python
Follow up question for War of dots: simple RTS war game in python. Code here, extra stuff here (screenshots, profiles, documentation). Client is being reviewed here.
What's changed?
Since last code ...
5
votes
1
answer
180
views
Romberg integration using integer arithmetic - without using Romberg's method
This is related to my previous question.
This is what I have been working on in the past month.
The title says it all, I have implemented numerical integration using integer arithmetic and Romberg ...
5
votes
3
answers
685
views
English and Roman numeral converter in Python
I wrote this program over half a year ago, but I decided to not share it because the task seems trivial to me. Today I decided to post it here. As it is designed to work with strings and messiness of ...
6
votes
4
answers
587
views
Numerical integration via Newton-Cotes formulas using integer arithmetic
I have written a Numerical integration library in Python from scratch using Newton-Cotes formulas and integer arithmetic, as a self-imposed programming challenge. I wrote all the code completely by ...
7
votes
4
answers
1k
views
Python fraction class
I have been using basic algebra to calculate many things using only integer arithmetic by separating the parts. Like \$(a + b \sqrt{N})(c + d \sqrt{N}) = (ac + Nbd) + (ad + bc)\sqrt{N}\$, and \$(a + ...