Can I Use a september_to_december_rainfall Variable?


#1

Is this an acceptable solution

september_to_december_rainfall = 5.16 + 7.20 + 6.06 + 4.06
annual_rainfall =+ september_to_december_rainfall


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

Hi @dublohseven,

That might give the correct output in the end, but it’s not what the exercise intends for you to do. You will have to fix a slight typo line 2 of the code above for it to run though: =+ is the wrong order for the two signs, it should be +=.


#3

2 posts were split to a new topic: What is the Exact Solution the Computer Requires?