Lists and dictionaries create a crude stock portfolio


Question: Lists and Dictionaries. Create a crude stock portfolio database system: There should be at least four data columns: stock ticker symbol, number of shares, purchase price, and current price (you can add more if you wish). Have the user input values for each column to create a single row. Each row should be created as list. Another allen compassing list will hold all these rows. Once the data is entered, prompt the user for one column to use as the sort metric. Extract the data values of that column into a dictionary as keys, with their corresponding values being the row that contains that key. Be mindful that the sort metric must have non-coincidental keys or else you will lose a row because dictionaries are not allowed to have more than one value with the same key. You may also choose to have additional calculated output, such as percentage gain/loss, current portfolio values, etc.

Request for Solution File

Ask an Expert for Answer!!
Database Management System: Lists and dictionaries create a crude stock portfolio
Reference No:- TGS02578107

Expected delivery within 24 Hours