Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list inside a list in python

# it appends a list into a list
list1 = [1,2,3,4,5]
list1.append([6,7])
# ouput = [1, 2, 3, 4, 5, [6, 7]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #list #python
ADD COMMENT
Topic
Name
2+2 =