DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to reverse a list in python
list = [1,2,3,4,5] reversed_list = list[::-1] # [::-1] [start : stop : step] print(reversed_list)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#reverse
#list
#python
ADD COMMENT
Topic
COMMENT
Name
6+7 =
Submit