Skip to content

Instantly share code, notes, and snippets.

@kkt-ee
Created January 4, 2020 17:00
Show Gist options
  • Save kkt-ee/d0f18926d1329104d82ea070f5bc0d44 to your computer and use it in GitHub Desktop.
Save kkt-ee/d0f18926d1329104d82ea070f5bc0d44 to your computer and use it in GitHub Desktop.
"""
Your goal in this kata is to implement a difference function, which subtracts one list from another and returns the result.
It should remove all values from list a, which are present in list b.
"""
def array_diff(a, b):
#your code here
return [x for x in a if x not in b]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment