Write a program in python that allows the user to enter the total rainfall amounts from your home town for each of 12 months of 2020 into a list. (Use whatever numbers you want) Display the month and the rainfall amounts. The program should calculate and display the total rainfall amount for the year and the average monthly rainfall, Be sure to identify the amounts displayed. Also determine and display the months with the highest and lowest rainfall amounts. When displaying the months with the highest and lowest rainfall, use a string method to display just the first three letters of the months with the highest and lowest rain amounts. REMEMBER to put comments, and write comments through both programs (file creation program, and display program) telling what the program is doing.
Write a program in python that allows the user to enter the total rainfall amounts from your home town for each of 12 months of 2020 into a list. (Use whatever numbers you want)
Display the month and the rainfall amounts. The program should calculate and display the total rainfall amount for the year and the average monthly rainfall, Be sure to identify the amounts displayed.
Also determine and display the months with the highest and lowest rainfall amounts. When displaying the months with the highest and lowest rainfall, use a string method to display just the first three letters of the months with the highest and lowest rain amounts.
REMEMBER to put comments, and write comments through both programs (file creation program, and display program) telling what the program is doing.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images