Solution :
def year):
inches
![$=[]$](https://img.qammunity.org/2022/formulas/computers-and-technology/college/z9r2ry9b0nvohgy9eh6k7nqvl2161x4mx4.png)

for range(year):
for j in range:
print("Enter the for the month in format(r))
count1
last = float(())
inches(last)
totalRainfall sum(inches)
totalMonths
count
return

if __name__ '__main__':
year = int(input("Enter the
of years (
):\\"))
print("For

while year :
year = int(("Enter of years ():\\"))
print("For
months"
(totalMonths))
print("Total rainfall: ",
)
print("Average monthly
",
)