I\'d like to make one list from two separate lists of unique items.
There are other similar questions but there didn\'t seem to be any that concerned doing this problem
A slightly more efficient way to do it:
>>> first = [1, 2, 3, 4]
>>> second = [3, 2, 5, 6, 7]
# New way
>>> list(set(first + second))
[1, 2, 3, 4, 5, 6, 7]
#1000000 loops, best of 3: 1.42 µs per loop
# Old way
>>> list(set(first) | set(second))
[1, 2, 3, 4, 5, 6, 7]
#1000000 loops, best of 3: 1.83 µs per loop
The new way is more efficient because it has only one set() instead of 2.