Removing elements from an array that are in another array,A = [i for i in A if i not in B]