Find the Difference Between Two Lists with Python
Let’s say you have two lists in Python that have a lot of overlap between them.
a = ["abc","def","ghi"]
b = ["def","ghi","jkl"]
Now let’s say you want to determine what is in b that is not in a. In set theory, you would refer to this as the set-theoretic difference of b in a. The following simple code [...] Read more »
