QUOTE
I see what you mean but I can't get it to work...its a good idea though. I have tried many things now but still can't get it to work.

you could try something like this ...
CODE
def main():
#Definera lite listor
months = [0] * 12
name_months = ['Jan','Feb','Mar','Apr','May','Jun', \
'Jul','Aug','Sep','Oct','Nov','Dec']
#Funktion för räkna det totala från listan
def total(months):
total = 0
for num in months:
total += num
return total
#Få alla nummer från användaren
for index in range(12):
print 'Enter the amount of rain in',
months[index] = input(name_months[index] + ': ')
print 'The total is', total(months), 'mm.'
#Genomsnittet
avarage = total(months) / 12.0
print 'The avarage rainfall is', avarage, 'mm.'
#Översätt från siffror till månadernas namn
# firstly ... make an unsorted copy ...
m_copy = months[0:]
# now ...
#Sortera listan
months.sort()
lowest = months[0]
print 'Lowest is', lowest, 'in',
# we are going to make a list of the month names that = lowset
lows = []
for i in range (12):
if m_copy[i] == lowest:
lows.append( name_months[i] )
for i in range (len(lows)):
print lows[i],
if i < len(lows)-1: print 'and',
print
highest = months[11]
print 'Highest is', highest, 'in',
# we are going to make a list of the month names that = highest
highs = []
for i in range (12):
if m_copy[i] == highest:
highs.append( name_months[i] )
for i in range (len(highs)):
print highs[i],
if i < len(highs)-1: print 'and',
print
main()