Skip to content

Add D'Hondt method seat allocation calculator #512

@javi0martinez

Description

@javi0martinez

Hi, I'd like to propose adding a new Python script to the repository: a calculator for the D'Hondt method, which is used in proportional representation electoral systems to allocate seats based on votes.

Script Description

  • Purpose: The script will take a list of parties with their total votes and the number of available seats, then compute the seat distribution using the D'Hondt algorithm.
  • I/O: Via CLI (parsing the input to get the electoral results and printing the output to the console)

This script fits well with in this repository as an automation script and it could be useful for educational purposes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions