Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Holderness authored May 22, 2020
1 parent 4d4ada5 commit 83fd758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

To read in the data, we’ll use the classes in the file named Expense.py. There are 2 classes -- Expense (which has a vendor, category, and amount) and Expenses (which has a list of type Expense and a sum of the amounts). Expenses also has a method read_expenses() which we’ll use to read the .csv file.

To start, create a file named `FrequentExpenses.py` and `import Expense` at the top of the file.
To start, open the file named `FrequentExpenses.py` in the `budget` directory, and add `import Expense` to the top of the file.

2. ### Read in the Spending Data
Create a variable named expenses and set it equal to calling the Expenses() constructor. Then call the read_expenses() method on expenses and pass in the name of the file `data/spending_data.csv`.
Expand Down Expand Up @@ -65,7 +65,7 @@
To run tests run: pytest -k "module2" -s
To run the file: python -m budget.BudgetList
1. ### Create the BudgetList class
Create a file named `BudgetList.py`. Inside that file, create a class called `BudgetList` with only `pass` inside the class for now.
In the `budget` directory, open the `BudgetList.py` file. Inside that file, create a class called `BudgetList` with only `pass` inside the class for now.

2. ### Create the constructor
Replace `pass` with a constructor that has two parameters - `self, budget`. Then initialize the following class variables:
Expand Down

0 comments on commit 83fd758

Please sign in to comment.