How do I move the last item in a list to the front in python?

Viewed 26058

I searched thoroughly but can't find anything relating to this exact specific. I have a list:

a = [two, three, one]

I want to move one to the front, so it becomes:

a = [one, two, three]

The thing is, it could be ANY amount of numbers in the list. Assume there is no way of knowing whether there will be 50 items or 3.

6 Answers
Related