Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python reverse list

>>> xs = [0, 10, 20, 40]
>>> xs[::-1]
[40, 20, 10, 0]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #reverse #list
ADD COMMENT
Topic
Name
9+4 =