I want to return a list with the interleaved elements of two lists directly from the list comprehension - without use a next step to flaten the result. Is it possible?
alist1_temp=[1, 4,2]
alist2_temp=[3, 7,4]
t=[[x,y] for x,y in zip(alist1_temp, alist2_temp)]
Return [[1, 3], [4, 7],[2, 4]]
But how can I get directly from the list-comprehension [1, 3, 4, 7, 2, 4]
?