Let's say that I created two different lists:
listA = [0, 0, 0]
listB = [1, 1, 1]
I want to make the an element in listB refer to the same object as an element in listA. So that the element in both lists change together.
listB[2] = listA[0]
>>listB[2]
>>0
listB[2] = 2
>>listA[0]
>>2
However doing the above just passes the value of the elements, so the lists are still referring to individual objects. Is there a method or a different data structure that could give me the desired effect?