Back
Given two lists, can we obtain all the elements that are present in one list but not there in another?
You can do it like this:
difference = list(set(list1) - set(list2))
You can learn more about python by watching this youtube video:
31k questions
32.8k answers
501 comments
693 users