DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to iterate a list in reverse order in python with index
a = [0, 0, 4] for i, e in reversed(list(enumerate(a))): print(i, "=", e)
PREVIOUS
NEXT
Tagged:
#iterate
#list
#reverse
#order
#python
#index
ADD COMMENT
Topic
COMMENT
Name
2+1 =
Submit