Array diff - decision on Python return to task def array_diff(a, b): return [x for x in a if x not in b]