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