I have two lists that i need to combine where the second list has any duplicates of the first list ignored. .. A bit hard to explain, so let me show an example of what the c
You can use sets:
first_list = [1, 2, 2, 5] second_list = [2, 5, 7, 9] resultList= list(set(first_list) | set(second_list)) print(resultList) # Results in : resultList = [1,2,5,7,9]