DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to remove element from list python by index
>>
>
l
=
[
1
,
2
,
43
,
3
,
4
]
>>
>
l
.
pop
(
2
)
#enter the index as argument
43
>>
>
l
[
1
,
2
,
3
,
4
]
Source by note.nkmk.me #
PREVIOUS
NEXT
Tagged:
#remove
#element
#list
#python
#index
ADD COMMENT
Topic
COMMENT
Name
6+6 =
Submit