title: How do I loop over the months of the year and print them in python?
body: <pre><code>year = int(input("Enter number of years: "))
  total = 0
  
  for x in range(year):
  for y in range(1,13):
      print("Year {0}".format(x+1))
      precipitation = int(input("Enter precipitation for month {0} mm: ".format(y)))
  
      total = total + precipitation
  
  
  totalmonths = year * 12
  average = total/totalmonths
  print("")
  </code></pre>
  
  <p>Ok how do i loop it so instead of month 1 , 2 ,3 its January , February etc.</p>