It includes an application that resolve the code assessment required and described by Nu technical team.
The requirements are:
- Python 3.10 or higher
- OS with Posix support (linux, unix)
To install we need run the following commands:
python3.10 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
chmod +x capital-gains
With all packages installed, now you can use it. Here leave a small example about how you can use it:
./capital-gains < input.txt
Enjoy it!
To run the included tests cases we need install development dependencies. You can install them running the following command on an active venv
environment:
pip install -r requirements-dev.txt
And then run the test site:
pytest