I am trying to combine two lists. This is what i have
l1 = [[1,2,3], [3,4,5], [10, 11, 12]]
l2 = [6,7,8]
This is what I have tried this
def merge(list1, list2):
merged_list = [(list1[i], list2[i]) for i in range(0, len(list1))]
return merged_list
This produces something close
l3 = merge(l1,l2)
[([1, 2, 3], 6), ([3, 4, 5], 7), ([10, 11, 12], 8)]
But this is what I want
l3 = [1,2,3,6], [3,4,5,7], [10,11,12,8]
How do i merge the two lists to get the list of list above?