List difference
Calculates the difference between two iterables, without filtering duplicate values.
- Create a
set
fromb
. - Use a list comprehension on
a
to 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
.