Write a python function that takes two lists and combines them without any duplicates and return the list


Topic: Write a python function that takes two lists and combines them without any duplicates and return the list

Solution

def combine_lists(L1, L2):
    return L1 + [items for items in L2 if items not in L1]
L1 = [1,2,3]
L2 = [2,4,3]
combine_lists(L1,L2)



List all Python Programs