import copy
my_list = [[1], [2, 1]]
list_copy = copy.deepcopy(my_list)
Select all pairs of objects that have the same id.
Tip: Remember that Python does not create new objects containing small integers.
import copy
my_list = [[1], [2, 1]]
list_copy = copy.deepcopy(my_list)
Select all pairs of objects that have the same id.
Tip: Remember that Python does not create new objects containing small integers.
Create a free account to access the full topic