Question: Write a program that: create a list (you an create it in code you do not have to use input() statements) that represents the

Write a program that: create a list (you an create it in 

Write a program that: create a list (you an create it in code you do not have to use input() statements) that represents the total rainfall for each of 12 months (assume that element 0 is January and element 11 is December). o The list is: 15.5, 12, 9.9, 4.67, 3.75, 0.6, 0, 0.32, 1.2, 2.9, 8.6, 12.7 the program should calculate and display the: o total rainfall for the year; o the average monthly rainfall; o the months with the highest amount. o the months with the lowest amount. You need to figure out how to access each element in the list, o You need to add the all up to find the total; o You need to also divide by the length of your list to get the average; o Use the min() and the max() functions to find the highest and lowest amounts. Print out statements showing the 4 required outputs (replace the ?? with amounts that are calculate by your code or months as appropriate) The total rainfall for the year: ?? inches The average rainfall per month is: ?? inches The month with the lowest rainfall is?? with ?? inches The month with the most rainfall is?? with ?? inches

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python rainfalllist 155 12 99 467 375 06 0 032 12 29 86 127 Calculate total rainfa... View full answer

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 Programming Questions!