Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate backwards through a list python

a = ["foo","bar","baz"]
for i in range(len(a)-1,-1,-1):
  print(a[i])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #list #python
ADD COMMENT
Topic
Name
8+2 =