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
# reversing a list in Python
numbers
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
]
print
(
numbers
[
:
:
-
1
]
)
Source by dbader.org #
PREVIOUS
NEXT
Tagged:
#reverse
#list
#python
ADD COMMENT
Topic
COMMENT
Name
2+6 =
Submit