I have 2 list's in the following form:
list1 = [["abc",45,48],["def",13,16]]
list2 = [["efgh",67,71],["def",13,16]]
How can I find the union of these 2 lists?
Required output:
union_list = [["abc",45,48],["def",13,16],["efgh",67,71]]
If this helps: As you can see, the list[0][1]
and list[0][2]
are integers
, we can typecast it to a string
if necessary.