Question: The soultion code should be using python verion 3. Please read the data from the 'budget.csv' file and do not simply type it in to

The soultion code should be using python verion 3. Please read the data from the 'budget.csv' file and do not simply type it in to python.The soultion code should be using python verion 3. Please read the

Given the 'budget.csv' file, read the data into a two level nested dictionary. Calculate and write the mean of each row and each column to a new file named 'result.txt'. Example Dialog: For this data: year 1 year 2 year 3 person 2 person 3 651000 651000 651000 1100500 950100 340000 740000 780000 800000 The value of the dictionary should looks like this: f'person 1': ('year 1':651000,'year 2':651000, 'year 3':651000, 'person 2': ('year 1':110500,' year 2':950100,'year 3':340800, 'person 3': f'year 1':740000,'year 2':780000, year 3':800000 ) The content of 'result.txt' should be: The average of yearl is 830500.00 The average of year2 is 793700.00 The average of year3 is 597000,00 The average of personl is 651000.00 The average of person2 is 796866.67 The average of person 3 is 773333.33

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!