Список питонов минус список
[item for item in x if item not in y]
credit to aaronasterling from stackoverflow
hazamashoken
[item for item in x if item not in y]
credit to aaronasterling from stackoverflow
>>> z = list(set(x) - set(y))
>>> z
[0, 8, 2, 4, 6]