i have this question:
Write a function reverse3(nums) that takes a list of ints of length 3 called nums and returns a new list with the elements in reve
nums
reversed returns an iterator. If you want to get a list object, use list:
>>> def reverse3(nums): ... return list(reversed(nums)) ... >>> reverse3([4,5,6]) [6, 5, 4]