human
Python: Make last item of array become the first
assistant
Here is some code to move last item of array `a` to the first position

a[-1:] + a[:-1]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.