Add D'Hondt calculator: This script can be used to get the alocated seats from the results of an election by javi0martinez · Pull Request #515 · wasmerio/Python-Scripts
and others added 7 commits
November 19, 2025 23:00Introduces the main.py file with a function for positive integer input validation and creates a placeholder readme.md for documentation.
Introduced a new function `calculate_dhondt_seats` in utils.py to compute seat allocation using the D'Hondt method. Updated main.py to use this function and print the seat allocation results. Refactored imports for clarity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters