Can I Use a september_to_december_rainfall Variable?


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

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 +=.

split this topic #3

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


I tried the same but the exercise showed some error. I took help from the hint to get what the computer wanted