1.5. Implement get_best_portfolio_for_budget(...) according to its docstring
1.6. Implement a few tests, reusing the previous test instances, as follows.
stocks needs to be successfully read from the JSON data file.
assert get_best_portfolio_for_budget([('J',), ('C', 'Q')], stocks, 36)['cost'] == 34
assert get_best_portfolio_for_budget([('C', 'Q'), ('N', 'G')], stocks, 53)['cost'] == 36
assert get_best_portfolio_for_budget([('C', 'Q'), ('N', 'G'), ('J',)], stocks, 35)['profit'] == 918
Messing up with the data inputs and outputs? Get help the type checker! Use mypy or activate the type checker in your IDE.
Before continuing, follow the "complexity, iterators & generators" course 