Find the difference of two lists in python
Jan 26, 2021
If you’re looking for a simple way to match two list in python and determine which items are not in both sets, I found the following works well.
This does the following:
- Convert the list to a set
- Calculate
- Convert back to a list