Question: Start by putting all your code in a file called portfolio.py. Create a function called loadinvestments that takes in the investmentFilename and returns a list

Start by putting all your code in a file called portfolio.py. Create a function called loadinvestments that takes in the investmentFilename and returns a list of possible investment options: name, cost, and estimated return. You will be given a file of actual investment options along with specific directions for that file on how to obtain the three pieces of information necessary for this assignment. Then make a function called optimizelnvestments that takes the list of possible investments along with the amount of money available to spend. This function should return both the optimal return on investment amount as well as the actual investments selected to achieve this optimal return. Implement this function using dynamic programming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
