you cannot use variable before an assignment statement creates it python will give you nameerror because no such variable by that name exists yet mistyping the variable name also causes this errorspam spma traceback (most recent call last)file ""line in spma nameerrorname 'spmais not defined the error appeared because there' spam variable but no variable named spma you can change the value stored in variable by entering another assignment statement for exampletry entering the following into the interactive shellspam spam spam spam when you first enter spam the expression evaluates to because you stored inside spam howeverwhen you enter spam the value is replacedor overwrittenwith the value now when you enter spam the expression evaluates to because the value of spam is now overwriting is shown in figure - figure - the value in spam being overwritten by the value you can even use the value in the spam variable to assign new value to spam