merge two list matrix python code example
Example 1: merge two lists
# Makes list1 longer by appending the elements of list2 at the end.
list1.extend(list2)
Example 2: python combine two lists into matrix
np.c_[[1,2,3], [4,5,6]]
# Makes list1 longer by appending the elements of list2 at the end.
list1.extend(list2)
np.c_[[1,2,3], [4,5,6]]