python | April 08, 2020
set1 = {1,2,3,4}
set2 = {3,4,5,6}
set1 | set2
=> {1,2,3,4,5,6}
set1 = {1,2,3,4}
set2 = {3,4,5,6}
set1 & set2
=> {3,4}
set1 = {1,2,3,4}
set2 = {3,4,5,6}
set1 - set2
=> {1,2}
set1 = {1,2,3,4}
set2 = {3,4,5,6}
set1 ^ set2
=> {1,2,5,6}