I would like to loop through a list in reverse order in Python. I get it in C#, Java, etc but not in Python.
This is what I have:
lista = [100, 200, 500, 2, 36]
n = len(lista)
for i in len(lista):
print(lista[n])
n = n-1
Worse I get an error on the line print(lista[n])
: it won't let me pass "n" as the index of the list.