How do I iterate over a list in reverse in Python?

array = [0, 10, 20, 40]
for (i = array.length() - 1; i >= 0; i--)

3
36

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *