I am new to data structures in python and was wondering how do you simulate a thing like pointers in python so that multiple structures can refer and manage the same piece of da
i have tried the following peice of code and it works (changing in one DataStructure changes for the other). does this help?
list1 = [1,2,3] list2 = [4,5,6] my_dictionary = {} my_dictionary["a"] = list1 my_dictionary["b"] = list2 del list1[0] print list1 print list2 print my_dictionary