a = {1,2,3,4}
b = {4,5,6,7}
# union() function
print(a.union(b))
print(a|b)

#instersection()  funnction
print(a.intersection(b))
print(a & b)

#difference() function
print(a.difference(b))
print(b.difference(a))
print(b - a)
print(a - b)

#symmetric_difference() function
print(a.symmetric_difference(b))
print(a ^ b)