Code:
def main():
months = ["January","Feburary","March","April","May","June","July","August","September","October","November","December"]
SIZE = 12
rainForMonth = [] * SIZE
index,subNumHigh,subNumLow = 0,0,0
yearTotal, yearAverage, monthHighest, monthLowest = 0.0,0.0,0.0,0.0
for index in range(SIZE):
print "Enter the amount of rainfall for the month of", months[index]
rainForMonth = float(raw_input(("Enter here: "))
yearTotal = arraySum(rainForMonth,SIZE)
yearAverage = yearTotal / SIZE
monthHighest, subNumHigh = arrayHighestValue(rainForMonth,SIZE)
monthLowest, subNumLow = arrayLowestValue(rainForMonth,SIZE)
print "Here are the results!"
print "Amount of rainfull for the year:", yearTotal
print "Average rainfall for the year:", yearAverage
print monthHighest, "had the most rainfall."
print monthLowest, "had the least rainfall."
Update****
Just had to fix my parenthesis in line 12.
Comment