DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
difference of two set in python
x = {1, 2, 3, 4, 5, 6} y = {1, 2, 3, 4} z = x.difference(y) # 5, 6
PREVIOUS
NEXT
Tagged:
#difference
#set
#python
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit