What does Assigning a Value to a Variable Mean?


#1

What does assigning a value to a variable mean ? Also, how does it help ,as we have already defined the variable with a specific name ?


FAQ: Learn Python - Python Syntax - Variables
#2

Hi @prembharwani,

A variable is just a way to point to a certain bit of memory in our computer. That memory can hold whatever we tell it to. If we change the value of a variable, all we’re doing is changing what the computer’s memory stores at the address the variable points to. Changing a variable’s value doesn’t change its name, though.

Does this make sense?