I'm a bit new to python's data structure tricks, and I've been struggling with a simple problem.
I have 2 2d lists
L1=[[1, '', 3],[1, '', 3]...]
L2=[['',2,''],['',2,''].....]
I'm looking for a simple way to merge the two lists such that the result is a new 2d list in the form:
result=[[1,2,3],[1,2,3]....]
I've tried
newestlist=[sum(x,[]) for x in zip(mylist, mylist2)]
but it yields the result
badresult=[[1,'',3,'',2,'']....]
is there a way way to accomplish this?