how to take the last item to the first item from a list code example Example: indexing python first and last l = [1,2,3,4,5] l[::len(l)-1]