Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

backwards loop over list in python

>>> a = ["foo", "bar", "baz"]
>>> for i in reversed(a):
...     print(i)
... 
baz
bar
foo
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #list #python
ADD COMMENT
Topic
Name
7+9 =