Python инвертирует массив
>>> L = [0,10,20,40]
>>> L[::-1]
[40, 20, 10, 0]
Helpless Hyena
>>> L = [0,10,20,40]
>>> L[::-1]
[40, 20, 10, 0]