Skip to content

johnwanng/python-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Homework - Py Me Up, Charlie

Introduction

This project contains 2 parts. The first part is under the PyBank folder, its aim is to use a Python script to read the budget_data.csv file (under the Resources folder) and analyses the records to calculate each of the following:

* The total number of months included in the dataset
* The net total amount of "Profit/Losses" over the entire period
* The average of the changes in "Profit/Losses" over the entire period
* The greatest increase in profits (date and amount) over the entire period
* The greatest decrease in losses (date and amount) over the entire period

The second part is under the PyPoll folder, its aim is to use a Python script to read the election_data.csv file(under the Resources folder) and analyses the votes and calculates each of 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.

Technologies

Python 3.8.5

Setup

To run the respectibve projects, following the instructions below:

  1. To run the PyBank project

  2. Download and extract the zip file

  3. Open Terminal (on Mac) or Open Bash (on PC)

  4. Navigate to the PyBank folder

  5. Run the main.py file

  6. To run the PyPoll project

  7. Download and extract the zip file

  8. Open Terminal (on Mac) or Open Bash (on PC)

  9. Navigate to the PyPoll folder

  10. Run the main.py file

About

Python Homework - Py Me Up, Charlie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages