Skip to content

This project automates voting count and determines winner of a local election. Demonstrates use of Python’s csv reader, dictionaries, and for loops.

Notifications You must be signed in to change notification settings

ajcascella/Polling-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background

In this project I wrote a Python script to automate a small town's vote-counting process. The polling data is a csv file composed of three columns: Voter ID, County, and Candidate.

Step by Step

  • My Python script analyzes the votes and calculates the following:

    • The total number of votes cast

    • A complete list of candidates who received votes

    • The percentage of votes each candidate won

    • The total number of votes each candidate won

    • The winner of the election based on popular vote.

About

This project automates voting count and determines winner of a local election. Demonstrates use of Python’s csv reader, dictionaries, and for loops.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published