cara menggabungkan dua daftar dalam python
listone = [1,2,3]
listtwo = [4,5,6]
joinedlist = listone + listtwo
Cook's Tree Boa
listone = [1,2,3]
listtwo = [4,5,6]
joinedlist = listone + listtwo
np.column_stack(([1, 2, 3], [4, 5, 6]))
array([[1, 4],
[2, 5],
[3, 6]])
np.c_[[1,2,3], [4,5,6]]
# list1 = [1, 2, 3]
# list2 = [4, 5]
# new_list = [1, 2, 3, 4, 5]
new_list = list1.extend(list2)