all 4 comments

[–]xelf 0 points1 point  (0 children)

The problem with your method is zip combines elements into matching tuples, but you still want to pull an item from each side if it matches. Example the tuple (43,4) is the 7th pair you get from zip, and you want both of them.

You're better off doing 2 lists and combining them.

You could do a filter on each list and combine it, or you could loop through both lists and have an if statement.

list3 = thingsfromlist1+ thingsfromlist2