title: Rainfall Statistics for Python
body: <p>What I'm trying to do is get the program to display the highest and lowest value I put in and that corresponding month. <strong>I'm not trying to display the average or the sum</strong>. I am returned with an error and if anyone could look and tell me what I'm doing wrong, I'll greatly appreciate it. </p>
  
  <pre><code>def main():
  
      year=[]
      January = float(input('Please enter January rainfall: '))
      February = float(input('Please enter February rainfall: '))
      March = float(input('Please enter March rainfall: '))
      April = float(input('Please enter April rainfall: '))
      May = float(input('Please enter May rainfall: '))
      June = float(input('Please enter June rainfall: '))
      July = float(input('Please enter July rainfall: '))
      August = float(input('Please enter August rainfall: '))
      September = float(input('Please enter September rainfall: '))
      October = float(input('Please enter October rainfall: '))
      November = float(input('Please enter November rainfall: '))
      December = float(input('Please enter December rainfall: '))
  
  year.value((January, February, March, April, May, June, July, August, September, October, November, December))
  
  def GetSmallestRainfall():
      print('The minimum rainfall is', min(year))
  lowest()
  
  def GetLargestRainfall():
      print('The most rainfall is', max(year))
      highest()
  
  main()
  </code></pre>