Skip to content

Instantly share code, notes, and snippets.

View titopao's full-sized avatar

Paolo Barazon titopao

View GitHub Profile
@titopao
titopao / predict_partylist_seats.py
Last active May 14, 2025 06:51
Predict the results of the 2025 Philippine party list elections
from math import floor
# ⚖️ The necessary DISCLAIMER
# This Python script is provided for demonstration purposes
# only, as a personal educational tool to understand how the partylist
# seats are allocated (based on the BANAT vs. Comelec case (G.R. No. 179271).
# The results produced by this script are not authoritative
# and does not represent the official results that will be published
# by the Philippine Commission on Elections' National Board of Canvassers.