Question: Task: Create a solution that accepts an integer input identifying how many shares of stock are to be purchased from the Old Town Stock Exchange,
Task:
Create a solution that accepts an integer input identifying how many shares of stock are to be purchased from the Old Town Stock Exchange, followed by an equivalent number of string inputs representing the stock selections. The following dictionary stock lists available stock selections as the key with the cost per selection as the value.
stocks TSLA: BBBY: 'AAPL': 'SOFI': 'KIRK': 'AURA': 'AMZN': 'EMBK': 'LVLU':
Output the total cost of the purchased shares of stock to two decimal places.
The solution output should be in the format
Total price: $costofstocks
Sample InputOutput:
If the input is
SOFI
AMZN
LVLU
then the expected output is
Total price: $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
