Error Message Despite What I Think is a Proper Solution to the Question


#1

Hello,

I am not so sure but I keep getting an error message despite what I think is a proper solution to the question. Can you help verify please? see below

annual_rainfall = 12.3
july_rainfall = 1.05
annual_rainfall += july_rainfall
august_rainfall = 4.91
annual_rainfall += august_rainfall
september_rainfall = 5.16
annual_rainfall += september_rainfall
october_rainfall = 7.20
annual_rainfall += october_rainfall
november_rainfall = 5.06
annual_rainfall += november_rainfall
december_rainfall = 4.06
annual_rainfall += december_rainfall
print annual_rainfall


FAQ: Learn Python - Python Syntax - Updating Variables
#2

Hi @ariyii,

You need to leave the annual_rainfall variable the way it is originally given in the exercise:

january_to_june_rainfall = 1.93 + 0.71 + 3.53 + 3.41 + 3.69 + 4.50
annual_rainfall = january_to_june_rainfall

Other than that, your code is fine.