Advertisement
ElliasBLR

array_diff

Nov 21st, 2020
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. def array_diff(a, b):
  2.     c = a.copy()
  3.     for i in a:
  4.         if i in b:
  5.             del c[c.index(i)]
  6.     return c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement