Write a Python program to get the difference between the two lists


Topic: Write a Python program to get the difference between the two lists

Solution

list1 = [1, 2, 3, 4]
list2 = [1, 2]
print(list(set(list1) - set(list2)))



List all Python Programs