#set( aggregate )
# Collection of unordered elements
# The element is the only , Duplicate elements are automatically filtered
#set() Create an empty set st01 = set()
#set(iterable) Create collections using iteratable objects
lt = [1,2,3,4,5]
st = set(lt)
#add(…)
st02 = set([1,2,3,4,5])
st02.add(6)
#clear(…)
st03 = set([1,2,3,4,5])
st03.clear()
#copy(…)
st03 = set([1,2,3,4,5])
st = st03.copy()
#difference(…)
st05_1 = set([1,2,5])
st05_2 = set([0,1,2,3,4])
st = st05_1.difference(st05_2)
#difference_update(…)
st06_1 = set([1,2,5])
st06_2 = set([0,1,2,3,4])
st06_1.difference_update(st06_2)
st = st06_1
#discard(…)
st07 = set([0,1,2,3,4,6])
st07.discard(7)
st = st07
#intersection(…)
st08_1 = set([0,1,2,3,4,6])
st08_2 = set([0,1,4,6,7,9])
st = st08_1.intersection(st08_2)
#intersection_update(…)
st09_1 = set([0,1,2,3,4,6])
st09_2 = set([0,1,4,6,7,9])
st09_1.intersection_update(st09_2)
st = st09_1
#isdisjoint(…)
st10_1 = set([0,1,2,3,4,6])
st10_2 = set([0,1,4,6,7,9])
st = st10_1.isdisjoint(st10_2)
#issubset(…)
st11_1 = set([0,4,6])
st11_2 = set([0,1,4,6,7,9])
st = st11_1.issubset(st11_2)
#issuperset(…)
st12_1 = set([0,4,6,1,7,8,9])
st12_2 = set([0,1,4,6])
st = st12_1.issuperset(st12_2)
#pop(…)
st13 = set([0,4,6,1,7,8,9])
st13.pop()
st = st13
#remove(…)
st14 = set([0,4,6,1,7,8,9])
st14.remove(9)
st = st14
#symmetric_difference(…)
st15_1 = set([0,4,6,1,7,8,9])
st15_2 = set([0,1,4,6,3,2])
st = st15_1.symmetric_difference(st15_2)
#symmetric_difference_update(…)
st16_1 = set([0,4,6,1,7,8,9])
st16_2 = set([0,1,4,6,3,2])
st16_1.symmetric_difference_update(st16_2)
st = st16_1
#union(…)
st17_1 = set([0,4,6,1,7,8,9])
st17_2 = set([0,1,4,6,3,2])
st = st17_1.union(st17_2)
#update(…)
st18_1 = set([0,4,6,1,7,8,9])
st18_2 = set([0,1,4,6,3,2])
st18_1.update(st18_2)
st = st18_1
st19 = set([0,4,6,1,7,8,9])
#len Get the collection size len(st19)
#min max Get set extremum min(st19)
max(st19)
#del Delete the collection del st19