python flip entries in list with two entries code example
Example 1: list reversal
list.reverse()
Example 2: reverse array python
>>> array=[0,10,20,40]
>>> for i in reversed(array):
... print(i)
list.reverse()
>>> array=[0,10,20,40]
>>> for i in reversed(array):
... print(i)