Source Code:
(back to article)
list1 = [1, 2, 3, 4, 5] list2 = [3, 4, 5, 6, 7] # Finden Sie den Unterschied zwischen den beiden Listen diff = list(set(list1) - set(list2)) print(diff) # Ausgabe: [1, 2]
Result:
Report an issue