DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+2 =
Submit