An implementation of classes, a characteristic of Object-Oriented Programming (OOP).
Covered concepts include :
- Defining classes
- Utilizing class attributes and methods
- Handling time-related functionalities.
The expenses.py
file contains two main classes
-
Expenses - Represents an individual financial expense.
-
ExpenseDatabase - Manages a collection of Expense object.
- Copy the repository/project URL:
https://github.com/Samuel-Njoroge/DE-projects.git
- Open a new terminal.
Use the
git clone
command and add the project linkhttps://github.com/Samuel-Njoroge/DE-projects.git
after the command as shown below.
3. Click
Enter
and a copy of the project will be saved locally on your machine.
- Make sure you have python installed.
Check your python version by running the command python --version
on your terminal as shown below.
2. Navigate to the downloaded project directory in your terminal using
cd
followed by the path to the cloned project.
- Running the python script.
On your terminal editor, type python expenses.py
and click enter.