defpairs(n): >>> pairs(1) [[1, 1]] >>> x = pairs(2) >>> x “””Returns a new list containing two element lists from values 1 to n [[1, 1], [2, 2]] >>> pairs(5) [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5]] >>> pairs(-1) [] “”” “*** YOUR CODE HERE ***”
defpairs(n): >>> pairs(1) [[1, 1]] >>> x = pairs(2) >>> x
“””Returns a new list containing two element lists from values 1 to n
[[1, 1], [2, 2]]
>>> pairs(5)
[[1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]
>>> pairs(-1)
[]
“””
“*** YOUR CODE HERE ***”