Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

merge two lists python

# list1 = [1, 2, 3] 
# list2 = [4, 5]
# new_list = [1, 2, 3, 4, 5]

new_list = list1.extend(list2)
Source by xahlee.info #
 
PREVIOUS NEXT
Tagged: #merge #lists #python
ADD COMMENT
Topic
Name
5+4 =