Answered You can hire a professional tutor to get the answer.
avg_rainfall.
i need help with python program can anyone help me with this assignment: avg_rainfall.py: the program that collects rainfall data and calculates the average rainfall for a user-defined number of years. Ask the user for the number of years in their study - use a small number to test, like 2, because you have to collect 12 months of data for each year!
The outer loop will iterate once for each year (hint: use range function).The inner loop will run once for each of 12 months, and ask the user for a rainfall amount for that month. The inner loop will accumulate a total for each year.The outer loop will finish by calculating average monthly rainfall for that year.At the end of each year, display the total for the year and the average.Challenge: add a feature to show the total and average rainfall per month for the entire study period.
thank you anyone who can help me.