Same ids

Report a typo

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.

Select one or more options from the list
___

Create a free account to access the full topic