Professional Documents
Culture Documents
RAINFALL_MONTHS=["January","February","March","April","May","June", "July",
"August","September" ,"October","November","December"]
monthly_rainfall=[]
for MONTH in RAINFALL_MONTHS:
Precipitation=float(input("Please Enter the rainfall in the month of {}:
".format(MONTH)))
monthly_rainfall.append(Precipitation)
TOTAL_RAINFALL= sum(monthly_rainfall)
AVERAGE_RAINFALL= TOTAL_RAINFALL/len(monthly_rainfall)
MAX_RAINFALL=max(monthly_rainfall)
MIN_RAINFALL=min(monthly_rainfall)
print("The Total rainfall for the year is :",TOTAL_RAINFALL)
print("The Average monthly rainfall is :" , AVERAGE_RAINFALL)
print("The highest amount of rainfall of the month is :",MAX_RAINFALL,)
print("The lowest amount of rainfall of the month is :", MIN_RAINFALL)
place=input("Enter Location:")
year = {}
year.extend((jan, feb, mar, apr, may, jun, jul, aug, sep, OCT, nov, dec))
def lowest():
lowest()
def highest():
highest()
def total():
total()
def average():
average()