Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Write a program in python for the Average Rainfall? [closed]
  2. # Initialize the accumulator.
  3.  
  4. total = 0
  5.  
  6. # Get the amount of years.
  7.  
  8. years = int(input('Enter the amount of years: '))
  9.  
  10. # Get the inches of rainfall for each month.
  11.  
  12. for month in range(1, 13):
  13.     print('Enter the inches of rainfall on month', month)