How can I do the following in Python?
array = [0, 10, 20, 40] for (i = array.length() - 1; i >= 0; i--)
I need to have the elements of a
For reversing the same list use:
array.reverse()
To assign reversed list into some other list use:
newArray = array[::-1]