Skip to content

Commit 48230d8

Browse files
Create Array.diff.py
1 parent 3c72ad2 commit 48230d8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

6 kyu/Array.diff.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def array_diff(a, b):
2+
end = []
3+
for x in b:
4+
end = [x for x in a if x not in b]
5+
print(end)
6+
if(end == []):
7+
return(a)
8+
else:
9+
return(end)

0 commit comments

Comments
 (0)