Post

@PythonPr The correct option is B: [1, 4, 3]
In Python, when a list is assigned to a new variable (e.g., y = x), the new variable is not a copy of the list; instead, both variables refer to the same list object in memory. This is known as assignment by reference.
English

@PythonPr The answer is B. In Python, variables don’t store lists, they store references. So modifying y also modifies x
Output: [1,4,3]
English

@PythonPr that same annoying property that dataframes also have
English
























