1. ๊ต์งํฉ intersection()
s1 = {'apple', 'banana', 'cherry'}
s2 = {'apple', 'banana', 'orange'}
print(s1 & s2)
result = s1.intersection(s2)
print(result)
2. ํฉ์งํฉ union()
s1 = {'apple', 'banana', 'cherry'}
s2 = {'apple', 'banana', 'orange'}
print(s1 | s2)
result = s1.union(s2)
print(result)
3. ์ฐจ์งํฉ difference()
s1 = {'apple', 'banana', 'cherry'}
s12= {'apple', 'banana', 'orange'}
print(s1 - s2)
result = s1.difference(s2)
print(result)