for loop an array backwards python code example
Example 1: python for loop backwards
for i in range(len(item)-1, -1, -1):
print(item[i])
Example 2: loop through list backwards python
for item in my_list[::-1]:
print item
for i in range(len(item)-1, -1, -1):
print(item[i])
for item in my_list[::-1]:
print item