A Colorado Board of Elections employee has given you the floowing tasks to complete the election audit of a recent local congressional election.
-
Calculate total votes cast
-
Get list of candidates
-
Calculate the votes each candidate got
-
Calculate the % of votes each candidate won
-
Determine a winner based off popular vote
Data Source: election_results.csv
Software: Python 3.10.4, Visual Studio Code 1.68
The analysis of the election shows that:
-There were 369,711 total votes cast
-The candidates were:
Charles Casper Stockham
Diana DeGette
Raymon Anthony Doane
Charles Casper Stockham recieved 23.0% of the vote. (85,213)
Diana DeGette recieved 73.8% of the vote. (272,892)
Raymon Anthony Doane recieved 3.1% of the vote. (11,606)
WINNER: Diana DeGette
Winning Vote Count: 272,892
Winning Percentage: 73.8%