So, I have a Python list like this:
list_ = [[Object, 2, ["r","g","b"]],
[Object, 5, ["r","g","b"]],
...
[Object, 3, ["r","g","b"]]]
I need to copy this list to a new list but when I use copy.deepcopy() it takes the list with its references.
new_list = copy.deepcopy(list_)
When I change a value in new_list, it affects the values in the list_ I want to copy the list_ that the new_list will have independent variables, so it must copy values, not reference addresses of variables. How can I do that?