Created
January 4, 2020 17:00
-
-
Save kkt-ee/d0f18926d1329104d82ea070f5bc0d44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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