# set data type
# unordered collection of unique items
s={1,2,3}  #one item can be repaeated twice hene set is unique
# print(s[1]) #indexing in no applicable in sets
#dictionary,tuple,list cant be store in set

# l=[1,2,3,4,5,5,5,6,7,7,8]
#remove duplicate
# s2=list(set(l))
# print(s2)

#to add a item
# s.add(4)
# s.add(5)
# s.add(4) #4 is added only once
# print(s)

#to remove a item
# s.remove(3)
# print(s)

# s.discard(5) #it does not produce error of not present element
# print(s)

# s.clear()
# print(s)

# s1=s.copy()
# print(s1)

