Question: Introduction Data manipulation forms the basis of all programming. This is especially important when working with data structures. For this week's homework assignment you will

Introduction Data manipulation forms the basis of all programming. This is especially important when working with data structures. For this week's homework assignment you will be tasked to work with lists and dictionaries to create a (very simple) portfolio. Below is a list of tasks you are expected to complete when working with lists and dictionaries Expectations For this assignment you are expected to create a program that does the following: Declare a list that contains stocks a user holds in their portfolio. The portfolio must contain at least 5 items Report a range of items in that portfolio. Print out the index of each holding in this range Insert a new holding into the portfolio Remove a stock from the portfolio Create a dictionary where the value of each key is the amount of shares held for that stock Add a new stock to the dictionary and a number of shares associated with that holding Calculate the total number of shares held in the portfolio\
using python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!