List difference
Calculates the difference between two iterables, without filtering duplicate values.
- Create a
setfromb. - Use a list comprehension on
ato only keep values not contained in the previously created set,_b.
Calculates the difference between two iterables, without filtering duplicate values.
set from b.a to only keep values not contained in the previously created set, _b.