Note: python 3 is used. All output can be seen in output.txt at the root level
- create a python 3 virtual environment on terminal:
python3 -m venv envName
- activate virtual environment
. envName/bin/activate
- clone this repo and cd into it
- install the requirements:
pip install -r requirements.txt
- cd to src directory and issue the following command
python calculate.py
- cd to root directory of this folder and issue the following command
python -m pytest
The reading file function is a seperate function in calculate.py . I was considering making this into a seperate file, but given the specs of the project it seemed a little unnecessary. Ultimately that was a design decision I had to make.