Python - Remove a set of a list array from another list array

- Posted in Python by
array1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]
array2 = [1, 2, 2, 2, 5, 6, 6, 6, 9]
set(array1).difference(array2)

output object

=> set([3, 4, 7, 8])

to array

arrLink = list(newArrDifference)

_https://stackoverflow.com/questions/18819606/python-remove-a-set-of-a-list-from-another-list

Tags: