- Determine the total number of votes cast
- Create a complete list of candidates who received votes
- Calculate the total votes for each candidate
- Calculate the % of votes receive
- Provide each county and their total vote count
- Determine what % of votes each county provided
- Determine the county with the largest number of votes
- Determine the winner of the election based on popular vote
- Source of election data: (election_results.csv)
- Software: Python 3.7.6, Visual Studio Code
-
Total number of votes cast: 369,711
-
Total votes and % of total votes each candidate received:
Diana DeGette: 73.8% (272,892) Charles Casper Stockham: 23.0% (85,213) Raymon Anthony Doane: 3.1% (11,606)
-
Largest County Turnout:
Denver: 82.8% (306,055)
-
This Elections Winning Candidate:
Diana Degette
-
All information we were tasked to provide by the Colorado Board of Elections has been answered in our Produced Election Results Outcome and bulletin list above.
-
Congratulations to Diana Degette for being the winner of this election receiving 73.8% of votes totaling an impressive 272,892 votes.
The python code provided was robust and can be used for any state wide election given the following:
1. A separate CSV file for each election was provided
2. A separate election analysis txt file was created
This code (with some refactoring where neccessary)can be used for any state wide election.