The purpose of this project was to do election data audit for a State election commission. By using Python, we have to analyize the following:
- 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 and calculate the percentage of votes each candidate won.
- Determine the winner of the election based on popular vote. additional requests:-
- Calculate the voter turnout for each county.
- Calculate the percentage of votes from each county of the total count of votes.
- Determine the county with the highest voter turnout.
- Visual Studio
- Git Bash
- Python 3.7.6
-
There were 369,711 total votes cast.
-
The candidates and their voting share:
- Charles Casper Stockham: 23.0% (85,213)
- Diana DeGette: 73.8% (272,892)
- Raymon Anthony Doane: 3.1% (11,606)
-
The winner of the election:
- Diana DeGette with 272,892 votes, and grab 73.8% of the total votes.
-
Identifie counties and their voter turnout is as follows:
- Jefferson: 38,855
- Denver: 306,055
- Arapahoe: 24,801
-
The percentage of votes in each county from the total votes is as follows:
- Jefferson: 10.5%
- Denver: 82.8%
- Arapahoe: 6.7%
contact me --ggnsaini08@gmail.com