
Implement alias_pairs, which returns every pair of positions of rows that hold one and the same list object.
alias_pairs([(a := [1, 2]), [1, 2], a])[(0, 2)]alias_pairs([[5], (b := [6]), b, [5]])[(1, 2)]alias_pairs([[], []])[]alias_pairs.py
Run the tests to grade your code
Implement alias_pairs, which returns every pair of positions of rows that hold one and the same list object.
alias_pairs([(a := [1, 2]), [1, 2], a])[(0, 2)]alias_pairs([[5], (b := [6]), b, [5]])[(1, 2)]alias_pairs([[], []])[]alias_pairs.py
Run the tests to grade your code
Variables will appear here