Post

@PythonPr In Python, when you assign a list to another variable using b = a, both variables reference the same list object in memory. This is known as assignment by reference. Therefore, any modification made to the list through the variable b, such as appending an element with
English

@PythonPr Answer: B) [1, 2, 3]
Why:
b = a doesn’t copy the list—it points to the same object.
So b.append(3) mutates the original list, and a reflects the change.
English

@PythonPr The output is B) [1, 2, 3].
In Python, variables are labels, not containers. When you set b = a, you aren't copying the list; you are just giving the same list a second name.
English


















