Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please add comment lines list=[] for i in range(0,12): print( Enter rainfall of month ,(i+1), : ) n=float(input()) list.append(n) maximum=list[0] minimum=list[0] sum=0.0
Please add comment lines list=[] for i in range(0,12): print("Enter rainfall of month ",(i+1)," : ") n=float(input()) list.append(n) maximum=list[0] minimum=list[0] sum=0.0 for i in range(0,12): if(maximumif(minimum>list[i]): minimum=list[i] min_index=i+1 sum=sum+list[i] for i in range(0,12): if i==0: print("January\t",list[i]," inches") elif i==1: print("February\t",list[i]," inches") elif i==2: print("March\t",list[i]," inches") elif i==3: print("April\t",list[i]," inches") elif i==4: print("May\t",list[i]," inches") elif i==5: print("June\t",list[i]," inches") elif i==6: print("July\t",list[i]," inches") elif i==7: print("August\t",list[i]," inches") elif i==8: print("September\t",list[i]," inches") elif i==9: print("Octomber\t",list[i]," inches") elif i==10: print("November\t",list[i]," inches") elif i==11: print("December\t",list[i]," inches") print("Maximum rainfall is: ",maximum," inches") print("Minimum rainfall is: ",minimum," inches") print("Average rainfall is: ",sum/12," inches")
Please add comment lines
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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