This is because, the line new_list = my_list assigns a new reference to the variable my_list which is new_listThis is similar to the C code given below,
int my_list[] = [1,2,3,4];int *new_list;new_list = my_list;You should use the copy module to create a new list by
import copynew_list = copy.deepcopy(my_list)