Variables are called variables because the values they store can change. We can update
status by using
= and giving it a new value.
status = "Watching Netflix" status = "Relaxing at the beach" print(status)
We can also give variables the values of other variables. Here, we can give the
new_status variable the value of
default_option = "upload" new_status = "download" new_status = default_option print(new_status)
When we update a variable, it forgets its previous value. Here, we can display the
status variable twice and see how its value updates.
status = "Playing football" print(status) status = "Walking the dog" print(status)