7 lines
160 B
Python
7 lines
160 B
Python
|
setx = set(["apple", "mango"])
|
||
|
sety = set(["mango", "orange"])
|
||
|
setz = setx & sety
|
||
|
print(setz)
|
||
|
#Set difference
|
||
|
setb = setx - setz
|
||
|
print(setb)
|