Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to reverse list python

>>> xs = [0, 10, 20, 40]
>>> for i in reversed(xs):
...     print(i)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reverse #list #python
ADD COMMENT
Topic
Name
1+4 =