I am trying to to connect the element of my lists in the function in way if I do any change on any element of
def itinerant(S1,S2,S3,S4,S5,S6,S7,S8):
old_list=[S1,S2,S3,S4,S5,S6,S7,S8]
outer=[S5,S6,S7,S8]
outer_cube=[[S2,S3,S4],[S1,S3,S4],[S1,S2,S4],[S1,S2,S3]]
so for example if I make change on any of S3s on outer_cube in the 'outer_cube' list this change goes to the rest of S3s in this list and S3 'old_list' as well my function returns new_list=[S1,S2,S3,S4,S5,S6,S7,S8] with the updated elements.any suggestions would be appreciated.