DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
get every item but the last item of python list
x
=
[
1
,
2
,
3
,
4
]
#same array, but the last item.
notLast
=
x
[
0
:
-
1
]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#item
#item
#python
#list
ADD COMMENT
Topic
COMMENT
Name
4+5 =
Submit