How do I Change the july_rainfall Variable to 1.10?


#1

Hi,

How do I change the july_rainfall to 1.10? I cannot change this variable in IDLE (Python 3.6.5 Shell).
When I entered the new value (1.10) to the same variable, the final result I got was the addition of this new value, with the previous value (1.05).
How do I remove the 1.05 value and replace it with 1.10 and then show the correct annual_rainfall (final updated output)?

I am begineer…just started learning Python yesterday.
Thanks.


How does Python reassign a variable's value?
#2

Hi @vikalp11,

Please post your code so we can help you.