A Colorado Board of Elections employee has given you the following tasks to complete the election audit of a recent local congressional election.
- Calculate the total number of votes cast.
- Get a complete list of candidates who received votes.
- Calculate the total number of votes each candidate received.
- Calculate the percentage of votes each candidate won.
- Determine the winner of the election based on popular vote.
- Data Source: election_results.csv
- Software: Python 3.7.6, Visual Studio Code, 2.1.6
The analysis of the election show that:
- There were "x" votes cast in the election.
- The candidates were:
- Candidate 1
- Candidate 2
- Candidate 3
- The candidate results were:
- Candidate 1 received "x%" of the vote and "y" number of votes.
- Candidate 2 received "x%" of the vote and "y" number of votes.
- Candidate 3 received "x%" of the vote and "y" number of votes.
- The winner of the election was:
- Candidate "x" who received "x%" of the vote and "y" number votes.