Dictionaries Business#
Business Applications#
Question-1: Portfolio Analysis#
The percentage distribution of investments in a portfolio is represented by the following dictionary:
dist_invest = {'stocks':0.25, 'bonds':0.45, 'cash': 0.10, 'cryptocurrency': 0.05, 'real estate': 0.15}
Write a function that takes the total investment amount as a parameter and returns a dictionary where the keys are the investment categories from the dist_invest dictionary, and the values are the corresponding amounts invested in each category.