Is this a Good Way to Solve It?


So, I made the new variable called fall_rainfall which is the sum of the september, october, novemebr december rainfalls and made the
annual_rainfall += fall_rainfall

But it did not mark my reply as a correct one :slight_smile: Can you tell me if it actually may be the good solution here?

FAQ: Learn Python - Python Syntax - Updating Variables

Hi @faszkka,

Yes, that would be fine in a normal application. There are other good ways to do it as well, but as long as your code works and is fairly easily readable (and efficient), it doesnโ€™t usually matter precisely how you solve a problem.