Solution :
def year):
inches
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
",
)