Variables in Python are just pointers, as far as I know.
Based on this rule, I can assume that the result for this code snippet:
i = 5 j = i j = 3 print(i)
But I got an unexpected result for me, it was
Moreover, my Python book does cover this example:
i = [1,2,3] j = i i = 5 print(j)
the result would be
What am I understanding wrong?