How do I Update the `january_to_june_rainfall` Variable?


#1

Hi, I’m writing this because i don’t quite understand the exercise fully is the variable being changed January_to_June_rainfall and if so how do i update it. id hate ask fir the answer but I’m confused and want to know what I’m doing wrong


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

Hi @vdubbz,

Could you please post your code? I don’t quite understand your question. In Python, to update a variable you use the same syntax as declaring a variable

foo = "hello" # create a variable
foo = "new value" # reassign a variable