Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Python rainfalllist 155 12 99 467 375 06 0 032 12 29 86 127 Calculate total rainfa...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started