Search
 
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
Name
8+2 =