Great question! You're clearly thinking ahead, and that's an excellent sign of a programmer!
To change a variable's value in Python, you simply assign a new value to the existing variable name using the assignment operator (=). The old value will be overwritten by the new one.
Let's look at the example from the lab step:
Initial assignment:
x = 42Here,
xholds the value42.Changing the value:
x = 100Now,
xno longer holds42; it now holds100. If you typexand press Enter again, the interpreter will show100.
In short: Just assign a new value to the variable name.
Feel free to try this in your Python interpreter. Let me know if you have any more questions!