DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
diff 2 lists python
def get_diff(a: list,b: list) -> list: return list(set(a) ^ set(b))
Source by kite.com #
PREVIOUS
NEXT
Tagged:
#diff
#lists
#python
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit