Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add list to end of list python


>>>var=7
>>>array = [1,2,3,4,5,6]
>>>array.insert(0,var)
>>>array
[7, 1, 2, 3, 4, 5, 6]

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #add #list #list #python
ADD COMMENT
Topic
Name
9+2 =