DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python insert list
# list.insert(before, value)
list
=
[
"a"
,
"b"
]
list
.
insert
(
1
,
"c"
)
print
(
list
)
# ['a', 'c', 'b']
PREVIOUS
NEXT
Tagged:
#python
#insert
#list
ADD COMMENT
Topic
COMMENT
Name
6+8 =
Submit