Is democracy logically impossible? Python functions to explore the Condorcet paradox and Arrow's Impossibility Theorem