How does python assign values after assignment operator [duplicate]
问题 This question already has answers here : How do I pass a variable by reference? (26 answers) Closed 4 years ago . Okay a very silly question I'm sure. But how does python assign value to variables? Say there is a variable a and is assigned the value a=2 . So python assigns a memory location to the variable and a now points to the memory location that contains the value 2 . Now, if I assign a variable b=a the variable b also points to the same location as variable a . Now. If I assign a